WordPress.org

Ready to get started?Download WordPress

Forums

FoxyShop
[resolved] Only the first product variation is appearing (5 posts)

  1. catalystwebworks
    Member
    Posted 2 years ago #

    Product variations are no longer showing up in my drop-down menus. They were working at one point, but now each variation is not being recognized as a new line item, and therefore new <option> tags are not being created. Here is the code the site is producing in the product page:

    <select name="Size" id="maple-leaf_1" class="variation-size">
    <option value="250ml{p+8}
    100ml{p+3}
    50ml{}||0cb19a2e4a0843d81d19ac59b8edb55c5015ff73418a1c7f483b0a456aa2e7bf" pricechange="+800">250ml (+$8.00)</option>
    </select>

    Any thoughts?

    http://wordpress.org/extend/plugins/foxyshop/

  2. sparkweb
    Member
    Plugin Author

    Posted 2 years ago #

    What version are you using? And what OS are you using?

    Try changing helperfunctions.php line 366 to:

    $variations = preg_split("[\r\n|\r|\n]", $variationValue);

    and see if that does the trick.

  3. catalystwebworks
    Member
    Posted 2 years ago #

    WordPress 3.2.1
    FoxyShop 3.5
    Mac 10.6.8
    Firefox 7.0.1

    And yes, the new line 366 worked great! Thanks for the quick fix.

  4. sparkweb
    Member
    Plugin Author

    Posted 2 years ago #

    Okay, thanks. I had switched it to a preg_split shortcut which was supposed to see all the different kinds of newlines, but apparently it wasn't doing the trick. I'll roll this out now in an update: 3.5.1 - thanks for the report.

  5. catalystwebworks
    Member
    Posted 2 years ago #

    FoxyShop is very impressive work. I'm happy to help if I can.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags