osCmax v2.5 User Manual
Results 1 to 9 of 9

Add to basket not working when selecting product by clicking on product image

This is a discussion on Add to basket not working when selecting product by clicking on product image within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hi, I have 2 problems, but they have the same result. Firstly, when you click on the category, and then ...

      
  1. #1
    Member
    Join Date
    Feb 2010
    Posts
    36
    Rep Power
    0


    Question Add to basket not working when selecting product by clicking on product image

    Hi,

    I have 2 problems, but they have the same result.

    Firstly, when you click on the category, and then click on the product image (not the "buy now" button) and then click on "add to basket", it opens the "Advanced Search" page and not the "What's in my cart?" page. It doesn't even add the product to the Shopping Cart.

    It works fine if you click on the "buy now" button instead of the image. Is this how it should work?

    Secondly, I have products with product attributes. However, when you click on the category (ie. Footwear), then click on the sub-category (ie. shoes), then click on the button "buy now" or click on the image, it comes up with the "Advanced Search" page.

    I'm beginning to think our host doesn't like osCMax, but I so don't want to start from scratch loading osCommerce or something else

    Any ideas?

    www.kidsunlimited.co.nzcatalog

    Tx in advance.

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Post Re: Add to basket not working when selecting product by clicking on product image

    Uncertain but it appears that most of your links have hard-coded osCsid in them. If this is the case, then it's unsurprising that "strange" things are happening.
    Go into Admin, turn on template switching...
    kidsunlimited :
    Does this exhibit the same? If not then it's a template issue.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    Member
    Join Date
    Feb 2010
    Posts
    36
    Rep Power
    0


    Default Re: Add to basket not working when selecting product by clicking on product image

    I haven't hard coded anything anywhere, cause I wouldn't know where or what.

    I've only made "cosmetic" changes to the site anyway, so not sure why I would experience all these issues I'm having.

    I changed back to the fallback template and it did exactly the same.

    I think I'm rather going to go with osCommerce , hopefully I won't have the same issues , sad, because I really liked osCMax. Oh well.

  4. #4
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: Add to basket not working when selecting product by clicking on product image

    Your call, of course. There are plenty of options open to you.
    Good luck with osC.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Add to basket not working when selecting product by clicking on product image

    Hi Kidsunlimited,

    Sorry to hear you are struggling with your store. However, anything that does not work with osCmax will more than likely not work on osCommerce!

    Having a look at your site ... You have made a few changes that are not simply 'look and feel' ... for starters you have a variable stkmsg which is undefined and causing javascript errors. (It is attached to your drop down field)

    Secondly, and I think this is the cause of your problems, is that your search infobox has no closing </form> tag ... this is why when you enter the form - you are actually entering the search box form not the shopping cart form. When you edit the 'look and feel' you need to be very careful you do not delete any code ... I know it is only one tag but as you can see it has a fairly big impact.

    Edit: If you add a product to your using the add to cart button ... then view your cart ... if you click the 'update cart' button it also does the search ... thereby proving your issue is with the search infobox. If you want to quickly test this then go to admin and turn off the search box and see if it fixes your problem. If it does then you know where to look!
    Hopefully this will help you solve your issue ... however, I am not going to stop you going back to osCommerce if you think it will suit your needs more ... as you can see we have an osCommerce support forum at osCmax aswell!

    Anyway, best of luck with your store.

    Regards,
    Last edited by pgmarshall; 06-21-2010 at 01:29 PM.
    pgmarshall
    _______________________________

  6. #6
    Member
    Join Date
    Feb 2010
    Posts
    36
    Rep Power
    0


    Default Re: Add to basket not working when selecting product by clicking on product image

    Thank you for your reply.

    That's probably the only code I removed was from the Search page (which is a file under templates). However, when I changed back to the fallback template, it had the same problems, so thought it wouldn't be that.

    Other than that I haven't removed anything else and haven't made any changes to how the product attributes are selected. The only things I've done to the site was to put the main categories on the main page, and changed new products to featured products. And then of course the search page. I will try and change the search page back to the original, maybe that will fix it, but as I've said ... I changed back to the fallback template and it had the same problem. What I meant about the cosmetic changes was that I tested the site after making all the above changes and then only did the graphical changes and then suddenly experienced these problems.

    I love osCMax and have spent a lot of time getting familiar with it and setting it up a couple of times because of the problems I had before. I searched on some of the problems I had, and came across some posts where people had similar problems and they all went with osCommerce and never experienced the same problems. I have never loaded or looked at osCommerce, all I know so far is osCMax. I'm really trying to stick to the basics so that it doesn't get affected by my changes. Will try a few things and see if I can rectify it.

    Thanks for your help though. The only thing I can think is that it's the code I removed in the search page. But why it won't work under fallback, who knows.

  7. #7
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Add to basket not working when selecting product by clicking on product image

    Kidsunlimted,

    You could shove a fresh copy of fallback over the top of your version (of fallback) and see if it fixes it ... although I suspect your issue lies elsewhere ... Post the code from catalog/includes/boxes/search.php and I am sure we can find and fix your issue.

    In regard to fallback ... make sure you copy the files you want to change to <your template> and never edit fallback - it is only there for when things don't work for <your template> edits ...


    Regards,
    pgmarshall
    _______________________________

  8. #8
    Member
    Join Date
    Feb 2010
    Posts
    36
    Rep Power
    0


    Default Re: Add to basket not working when selecting product by clicking on product image

    thanks pgmarshall, you are too kind

    Luckily for me, I document all my changes, so I will take a step back with each change and see what the results are. I will also try reverting back to the entire fallback template. I always make a copy of the fallback template, and rename it and then use that as my template to make changes to. And, I have backup and backups of backups, etc.

    Will let you know how I get on, but I don't expect you to think for me or to simply fix my errors for me. If I break, I should fix, just thought it might be something else that someone has experienced or a known problem.

    I will let you know how I get on.

    Tx

  9. #9
    Member
    Join Date
    Feb 2010
    Posts
    36
    Rep Power
    0


    Default Re: Add to basket not working when selecting product by clicking on product image

    pgmarshall,

    Sorry for wasting your time :s I back tracked a bit. Replaced my template files with the original fallback files, one by one ...

    The problem was with the changes I made to the catalog/includes/boxes.

    Looks like I was in denial, not thinking it was me!

    S-o-r-r-y! Still LOVE osCMax

Similar Threads

  1. Replies: 1
    Last Post: 08-19-2009, 07:18 AM
  2. No product showing up when clicking on categories
    By balisi in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 07-14-2009, 01:40 PM
  3. Replies: 0
    Last Post: 07-02-2009, 10:00 AM
  4. Specific Product Image based on chosen product attributes?
    By chrisrex in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-22-2005, 08:41 AM
  5. Clicking product image to view larger size
    By twinklep in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 09-07-2004, 06:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •