| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Displaying Product options using "if" statements | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Re: Displaying Product options using "if" statements
I mean Product options, not Extra Fields.
__________________
X-Cart Version: 4.7.12 GOLD www.cheapglasses123.com prescription glasses online at discounted prices. prescriptionglassesusa.com www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS |
|||||||
#12
|
|||||||||
|
|||||||||
Re: Displaying Product options using "if" statements
The method for product options is very much similar to what Steve has demonstrated for you using extra fields. Instead of looping through the extra fields array - you will do a similar loop through the product options array ($product_options). Then, understand there is an array inside the array with all the options per product
Look at /skin/common_files/modules/Product_Options/customer_options.tpl as a guide for what you want to do. Use webmastermode on the page in question, select "show variables", look at the $product_options array for the fields available to you. Code:
If you can see in the webmastermode window exactly what you are after, you can reference it without looping. Maybe something like: Code:
---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#13
|
|||||||
|
|||||||
Re: Displaying Product options using "if" statements
would you please give me a full example, thanks.
__________________
X-Cart Version: 4.7.12 GOLD www.cheapglasses123.com prescription glasses online at discounted prices. prescriptionglassesusa.com www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS |
|||||||
#14
|
|||||||
|
|||||||
Re: Displaying Product options using "if" statements
anybody knows how to do? tks in advance!
__________________
X-Cart Version: 4.7.12 GOLD www.cheapglasses123.com prescription glasses online at discounted prices. prescriptionglassesusa.com www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS |
|||||||
|
|||
X-Cart forums © 2001-2020
|