Zen Follower
- Join Date:
- Feb 2006
- Location:
- Boise, ID
- Posts:
- 330
- Plugin Contributions:
- 0
Set a flat shipping cost for a single item
it seems the pID is the issue for the shipping not turnning on/off with a click as the pID is "1" and the pID to change the status for the item "in this items case is the pID of 131 so the pID is not updating for the shipping icon.
currently using :
<?php if ($products->fields['product_is_always_free_shipping'] == '1') { echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'action=setflag&flag=0&pID=' . $products->fields['product_is_always_free_shipping'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_IMAGES . 'free_shipping_set.png', IMAGE_ICON_STATUS_ON) . '</a>'; } else { echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'action=setflag&flag=1&pID=' . $products->fields['product_is_always_free_shipping'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_IMAGES . 'icon_red_on.gif', IMAGE_ICON_STATUS_OFF) . '</a>'; } ?>