• Resolved smoo

    (@smoo)


    Hi again,
    I am trying to figure out the best solution for the main price when I have a product that has various prices for different sizes;

    My variations are, for eg: small: £20, med: £30, large – £40.
    However, if I put the lowest price in the main price box at the top, it adds that to the variation price of the individual product page, so the only way I can avoid that is by putting 0 as the main price.
    But then in the ‘grid’ view, the price for items with variations shows up as £0.00, which is not ideal.

    An example is here:
    https://www.goldenfleecetrading.co.uk/shop/standing-lamps/
    where the first item in the grid has the lowest price set in the ‘main price’ field, and the second has it set to 0.

    Is there a solution to this that I’m not seeing?
    Thanks again in advance for any help
    -sam

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author moshthepitt

    (@moshthepitt)

    Hi!! Sorry for the late response.

    Right now, the way the prices and variations work is this:

    If base price = x

    then the price you set for the variation when creating the product (y) will be = x+y

    Please look at the example here: https://dukapress.org/demo/products/goatman-mask/

    Unfortunately, the price that is displayed on the Grid is the base price.

    So for your product, e.g. this one: https://www.goldenfleecetrading.co.uk/products/skud-single-bulb/

    Maybe you can have the custom fields this way:
    price: 39
    dropdown_option: Height|60cm|80cm;10.00|100cm;20.00|120cm;30.00

    Please try it and see how it looks.

    I know it is confusing and we are thinking very hard about changing it.

    Thread Starter smoo

    (@smoo)

    Gotcha, I should have thought of that. Thank you.

    However, whilst trying to figure it out, I was looking at /wp-plugins/dukapress/php/dp-products.php and I had the following idea, which seems pretty do-able and (i think) user-friendly:

    So, when there are price variations, the main price is set to 0 and the variations are set accordingly;
    Then, in the grid view, any items with a base price of 0 would say ‘Prices vary according to X’ (where X is whatever parameter you’ve stated in the dropdown_option box) and the ‘add to cart’ button would be removed.

    They’d then have to click through to the individual product page to see the variations and their prices, and don’t get to add one to their cart before seeing the whole range.
    Just a thought, what do you think?
    -sam

    Plugin Author moshthepitt

    (@moshthepitt)

    I like that idea Sam.

    However, would it affect sales negatively to remove the add to cart button from the grid page (on my shops I notice most add to cart actions happen there). I’m thinking we keep the add to cart and then shop owners can remove it individually (so easily via CSS).

    I’ve been doing some research on the big professional clothes shops (which have the most variation issues) and on their ‘grid’ pages the price is always shown. So I am thinking it is important to show it.

    What do you think?

    Thread Starter smoo

    (@smoo)

    I understand.
    So.. how about this then:
    You put in the prices as you suggested above; then on the grid page, dp-products.php detects whether or not there are variations in the price for this item, and if there are, it just adds the word ‘From’ in front of the price. That way, it’s clear that the prices will vary, but they can still add to cart if they want.

    What do you think?
    :o)

    Plugin Author moshthepitt

    (@moshthepitt)

    I like that! Going to try and implement! ??

    Thread Starter smoo

    (@smoo)

    Hurraah!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: DukaPress] What main price to use when 'Custom Fields Used'’ is closed to new replies.