| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Product options on products.tpl | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||||
|
|||||||||
Any thoughts anybody? This is important for me. Thanks.
|
|||||||||
#22
|
|||||||||
|
|||||||||
Did you modify the template as well? You need to modify both the PHP source code and the template code to display the options properly.
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
#23
|
|||||||||
|
|||||||||
Yes I modified both, and it works well for the category listings. However it doesnt' work for featured products.
|
|||||||||
#24
|
|||||||
|
|||||||
SQL error in version 4.0.12
I've tried to adapt this code for my 4.0.12 x-cart store, but keep getting this error:
Quote:
The error occurs with any product (any productid) regardless of whether or not it has product options. I'm pretty sure the error is in the products.php file in this section: Code:
I know this is an old thread, but if anyone has adapted this code for 4.x.x of x-cart, I'd be grateful for any insight. Many thanks, Joe |
|||||||
#25
|
|||||||||
|
|||||||||
It looks like you have no value for $sql_tbl[product_options]. Make sure this is defined properly. They may have changed the name of the table in the newer version of x-cart, so just go into your config file or look at your xcart database and make sure you are usnig the correct key name in your $sql_tbl array to specify the product_options table.
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
#26
|
|||||||
|
|||||||
SQL Error gone, but options still not shown on products.tpl
minorgod,
Thanks so much. You were right on the money that the SQL values were not properly defined. I went into config.php and added: Code:
to the SQL Table aliases (there is also "xcart_product_options_lng" which I have not figured out yet how it works with "xcart_product_options_ex"). I noticed that in the SQL table for xcart_product_options_ex there was no productid field and that now it was called optionid. As such I edited your mod in products.php to reflect this: Code:
This removed the SQL errors, however the products.tpl does not display the product options. In fact, the product pages display as if no changes have been made. Obviously I am missing something (not surprising as I feel I am in over my head with this mod). Any suggestions on where to look next would be most appreciated. Joe |
|||||||
#27
|
|||||||
|
|||||||
product options on products page
Did you ever get this figured out for 4.0.x?
I am looking for a solution
__________________
X-Cart version 4.1.10 upgraded from 4.0.13 myself slowly and with help from xcart forums. Thanks all! http://www.discountseforim.com Hebrew Seforim and Jewish Books |
|||||||
#28
|
|||||||
|
|||||||
Re: product options on products page
Quote:
I never did find a solution for this. As I needed this for only a couple of products, I ended up making a workaround in which I formatted my product.tpl to resemble my products.tpl and then linked directly via the Categories list to individual products. Joe |
|||||||
|
|||
X-Cart forums © 2001-2020
|