![]() |
Quick help with Buy Now button pls.. page error!
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:
{* $Id: related_products.tpl,v 1.7.6.1 2004/07/15 10:28:54 svowl Exp $ *} The problem is in this line: Code:
{include file="customer/main/buy_now.tpl" productid=$product_links[cat_num]} 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! |
Re: Quick help with Buy Now button pls.. page error!
Come one guys please... this should be an easy fix... someone? thanks!
|
Re: Quick help with Buy Now button pls.. page error!
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) |
Re: Quick help with Buy Now button pls.. page error!
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!!! |
Re: Quick help with Buy Now button pls.. page error!
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! |
Re: Quick help with Buy Now button pls.. page error!
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? |
Re: Quick help with Buy Now button pls.. page error!
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} |
All times are GMT -8. The time now is 06:20 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.