Looking to put a banner on the PROD page (free shipping) if a product is assigned a certain shipping method, "wtbship:Free Shipping" in this instance. Can anyone point me in the right direction of a correct Token and IF statement to use? Are all the shipping methods in an array?
Announcement
Collapse
No announcement yet.
PROD message based on on shipping method.
Collapse
X
-
You should be able to run the ProductShippingMethodList_Load_Product function on the PROD page, and pass the product ID. This will give you an array of shipping methods checked within the product details Shipping Rules section. You can loop through the array to check for the shipping method and run the conditional needed to output the banner.Nicholas Adkins
Technical Training Specialist / Miva, Inc.
[email protected]
https://www.miva.com/mivalearn
-
Ah, yea...but that's chewing through unnecessary processing. If a product ships free, just use a custom field. You can create a routine to update and monitor this on a "private" page...but doing this every time on page load seems like a waste.Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
-
True and understand. Often times, these "private" pages are hit with CRON actions to keep them updated or triggered under specific circumstances.Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
Comment