routerboy309 Posted December 12, 2011 Share Posted December 12, 2011 Hi First time here...but I have searched and searched trying to find a solution to this issue. I have cart, where I added a new category.After I added the new category, I added products to it. After doing so, the "Add to Cart" buttons act disabled. You can click and click and it never gets added to the cart. I have about about 5 productst to this category and all 5 act the same way. If you need the link, I'll be happy to provide it, but I think its something I've overlooked and you pros can answer it without a link to the site.Also what's weird is the image that is tied with the new product - when you click on it fails to open the page. When I created another category, added product to that category, it works like its expected. I've installed 1.4.5.1. Thanks RB Link to comment Share on other sites More sharing options...
routerboy309 Posted December 13, 2011 Author Share Posted December 13, 2011 ^^ BUMP ^^ Still looking for a little help. I used FF with FireBug and noticed some of the code appears missing from the "broke" category. The questionable page, that has the issues, was modiifed by a third party so I could require some serial number information before checking out. That coder is not responding to emails, so I'm looking for a little help here. Firebog is telling me I'm missing this: <a class="button ajax_add_to_cart_button exclusive" title="Add to cart" href="http://wxw.mysite.com/presta/cart.php? add&id_product=12&token=94139baf3f0072795862b58b49dd1b3b" rel="ajax_id_product_12">Add to cart</a> When I add it to the active version, the button restores. Any clue as to what page I should be looking for? Thanks RB (ps...be easy on me - my programming is limited). Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 A link to the site is always helpful.... Do these products have any attributes? Link to comment Share on other sites More sharing options...
routerboy309 Posted December 13, 2011 Author Share Posted December 13, 2011 Hi Thanks for the reply...(I actually grab one of your modules already...and it solve a different issue I had - so thanks for that). :-) Here is the link.... http://www.2order.co...p?id_category=5 You should land on the 5th category...and you'll see none of the buttons are working. I'm not sure where to check for "attributes". Thanks RB Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 It looks like all those products have a mandatory customization field, that's the first thing that comes to mind. Link to comment Share on other sites More sharing options...
routerboy309 Posted December 13, 2011 Author Share Posted December 13, 2011 Ok...You're right. I see where he added a custom text to each item in that category. I now see this issue as two fold: First: It appears since there is a required field needed to be completed the action prior of "sending it to the cart", it might be good to solve this by removing the "Add to Cart" button since the required field is not on the landing page for category #5. If the button can be removed, it will not give the impression a user can simply add this item to the cart. (Note: We require the custom text field be completed before checkout b/c the value is dependant on your final cost.) Second: If the "add to cart" is removed, the user will need to click on the "image" to load the item and from there they can see they must complete the required field, at which point the "Add to Cart" works. Currently, clicking the image fails to load the page related to that item. So...at the end of the day, how do I remove the "add to cart" from the landing page, and allow the user to click the image to load the item so they can complete the required field? Thannks RB Link to comment Share on other sites More sharing options...
tomerg3 Posted December 13, 2011 Share Posted December 13, 2011 I haven't done that before, maybe someone else who did can post here, or you will have to find a developer to customize it for you. Link to comment Share on other sites More sharing options...
routerboy309 Posted December 13, 2011 Author Share Posted December 13, 2011 Hi I did find a way to comment out the "Add to Cart" buttons on the home page (from the featured products selections). Certainly removed the ability to add something that doesn't have a "custom" field and needs an "add to cart" option, but they look uniform now. So I'm moving with trying to remove them from the "category 5 page". I read someplace I could remove the button from any single product I needed too...but I think that affects the product globally. I would think someplace on the NET is someone that has remmed out the code for inserting a button in a Presta category page. I just need to keep searching. Thanks for the help thus far. I need find a video related to hooking...I'll bet that will help me. RB Link to comment Share on other sites More sharing options...
routerboy309 Posted December 13, 2011 Author Share Posted December 13, 2011 Update: Nothing found on the NET...so I added this to my product-list.tpl file: $smarty.get.id_category != 5 Which tells the products - that are configured on category 5's web page not to show the "Add to Cart" button. I guess its working ( ) b/c I've tested it and I don't see the add to cart button. Anyone else care to test it to see if they get the same results and its not my computer playing treriable jokes on me? Here is the final section of code: {if ($product.allow_oosp || $product.quantity > 0) && $smarty.get.id_category != 5 && $product.customizable != 2} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {else} {* button was here *} {/if} Still have an slight issue issue that relates to when someone clicks on the product image and nothing happens (even though the right URL shows un in the Status Bar (of IE), but that is probably another topic thread. Thanks RB Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now