| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Quick help with Buy Now button pls.. page error! | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi guys, there is a mod in the completed section for making the recommended products listing more intuitive. I am using it with some modifications on 4.0.16 and it looks great, like this:
http://www.jctech.com.au/images/related.jpg The only problem is the Buy Now button doesn't work. IE gets an error that says: Error: Object doesn't support this property or method The entire code for my related_products.tpl is: Code:
The problem is in this line: Code:
But for the life of me I can't figure out how to fix it... I have tried so many combinations of variants in that line its not funny, but I just cannot get it to work... PLEASE help, this should be a simple thing to do but I am a noob! thanks! |
|||||||
#2
|
|||||||
|
|||||||
![]() Come one guys please... this should be an easy fix... someone? thanks!
|
|||||||
#3
|
|||||||
|
|||||||
![]() you are assigning the wrong object to productid...and going by products.tpl, you want product and not productid
you have: {include file="customer/main/buy_now.tpl" productid=$product_links[cat_num]} change to: {include file="customer/main/buy_now.tpl" product=$product_links[cat_num]} //(if that doesnt work, try adding .product at the end, i dont know which to use) |
|||||||
#4
|
|||||||
|
|||||||
![]() Hi mate, thanks for trying to help me. with your example, the button doesnt show up, instead it says "out of stock"
If I put .product on the end, the button shows, but when i click on it i get Access denied ! You are not allowed to access that resource! Error ID: 33 I tried browsing anonymous and logged in as a registered user.... any ideas? Thanks for trying to help!!! |
|||||||
#5
|
|||||||
|
|||||||
![]() Please somebody? The method of listing a bunch of products with a buy now button works perfectly well in category display, why can't anyone get it working ni this format? its so similar I thiought...
I tried using some of the code from the products.tpl but it didn't work as I don't know anything about php... surely someone knows how to do it? thanks again! |
|||||||
#6
|
|||||||
|
|||||||
![]() Pleeeease somebody???
I've seen this in so many xcart stores its not funny, yet no one can help me do it with mine? please? |
|||||||
#7
|
|||||||
|
|||||||
![]() Quote:
This is a form error. The buy_now template is probably not getting the variables it needs. Inebriate is right, buy_now needs a "$product" array, not a "$productid" array. So change as he suggests. Then make sure all the variables needed by buy_now are present. Put them all in another file and call this from the button and see which are present and which not. Check especially those needed by FORM in buy_now : _{$product.productid}_{$product.add_date}
__________________
XCart Gold 4.0.18 Fedora 6 - Apache 2.2.4 - PHP 5.1.6 - MySQL 5.0.27 www.goose.fr |
|||||||
|
|||
X-Cart forums © 2001-2020
|