Support » Plugin: FoxyShop » [Plugin: FoxyShop] Only the first product variation is appearing

  • Resolved catalystwebworks


    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}
    50ml{}||0cb19a2e4a0843d81d19ac59b8edb55c5015ff73418a1c7f483b0a456aa2e7bf" pricechange="+800">250ml (+$8.00)</option>

    Any thoughts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author sparkweb


    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.

    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.

    Plugin Author sparkweb


    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.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: FoxyShop] Only the first product variation is appearing’ is closed to new replies.