Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add to cart button in osCommerce keeps redirecting back to product page


Recommended Posts

I have an Cigarette item in osCommerce that includes product attributes. When I click the Add to Cart button from the product_info.php page it should go directly to the shopping_cart.php page. However, it only keeps redirecting the customer back to the product_info.php page.

Link to comment
Share on other sites

I don't know for sure but I seem to recall reading that it does that if the attribute is not selected....see if it makes any difference when the attribute is selected.

 

Dan

Link to comment
Share on other sites

@@katrinamonarco

 

Hi Katrina,

 

Have you checked this setting in "admin->configuration->my store->Display Cart After Adding Product"?

 

It is true that you should be re-directed to the shopping cart when adding a product to the cart from the product info page (with or without attributes) when Display Cart After Adding Product is set to "true". The only time this is not the case is if you add to cart a product that has attributes from any where other than from within the product info page, in this case you will be sent to the product info page.

 

Which osC version are you running?

 

Has any code been modified or have you added an attribute add-on?

 

Does the problem only happen with this particular product, have you created other product attributes to test?

 

Can you supply a link to the site for us to look at?

 

cheers

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Link to comment
Share on other sites

Hi auzStar,

 

I have set Display Cart After Adding Product is set to "true"...but Still Geting Same Problem...

 

► Which osC version are you running?

     I have use Oscommerce V2.3.4

 

► Has any code been modified or have you added an attribute add-on?

    NO

 

► Does the problem only happen with this particular product, have you created other product attributes to test?

    it's Problem with All Products

 

► Can you supply a link to the site for us to look at?

    http://www.vapoorzon.com/1453-atomizer-p-106.html

Link to comment
Share on other sites

@@katrinamonarco

 

Katrina,

 

It looks like your product_info.php page has been modified to the extent that the "Add to Cart" button isn't capturing the attributes. The "cart_quantity" form is missing, possibly due to modifications or add-on addition to create the non-standard "Quantity" field. The "cart_quantity" form has been ripped out, and that's what normally captures the attributes when the "Add to Cart" is clicked. The background processes are spitting this "Add to Cart" attempt back out (for good reason) because they recognise that the product is supposed to have an attribute selection included with it when being added to the cart.

 

Can you get who ever made the changes to correct the problem?

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Link to comment
Share on other sites

  • 1 month later...

@auzStar

 

Hi auzStar,

 

One more Issue with ocPOS - OllaCart Point of Sale..

 

I have Integrate ocPOS - OllaCart Point of Sale in my osCommerce website and i have integrate Separate Pricing per customer in my main website. it's Working fine but don't show SPPC in ocPOS - OllaCart Point of Sale.

Link to comment
Share on other sites

@auzStar

 

Hi auzStar,

 

One more Issue with ocPOS - OllaCart Point of Sale..

 

I have Integrate ocPOS - OllaCart Point of Sale in my osCommerce website and i have integrate Separate Pricing per customer in my main website. it's Working fine but don't show SPPC in ocPOS - OllaCart Point of Sale.

 

@@katrinamonarco

 

Hi Katrina,

 

Sorry, but I'm not familiar with these add-ons. Post an new topic for that or post in the support threads for those addon-ons, someone maybe able to help.

 

In regards to the original question, I see that the cart "cart_quantity" form is back. The product link that you provided above doesn't have attributes, have you tested the attributes now? Also, the quantity doesn't work. I'll try to give a fix for that shortly.

 

cheers

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Link to comment
Share on other sites

@@katrinamonarco

 

To enable adding products to cart using quantity:

 

In the file catalog\includes\"application_top.php" (back it up first), around line 354 (under the section "case 'add_product' :")

 

find and replace the line below:

                                $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes))+1, $attributes);

with this:

                                $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes)) + (isset($HTTP_POST_VARS['quantity']) && is_numeric($HTTP_POST_VARS['quantity']) ? $HTTP_POST_VARS['quantity'] : 1), $attributes);

 try that

 

cheers

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Link to comment
Share on other sites

I have an Cigarette item in osCommerce that includes product attributes. When I click the Add to Cart button from the product_info.php page it should go directly to the shopping_cart.php page. However, it only keeps redirecting the customer back to the product_info.php page.

 

@@katrinamonarco

 

Hi Katrina,

 

Is it working with product attributes now?

My Add-ons
Advanced Cache Control Tool for osCommerce 2.3.x (non-bootstrap) Download Support
Ajax Product Listing for osC 2.3.4 (bootstrap) Download Support
Category New Products Carousel for osC 2.3.4 (bootstrap) Download Support
Category Popular Products Carousel for osC 2.3.4 (bootstrap) Download Support
Customer Testimonials for osCommerce 2.3.4 (bootstrap and non-bootstrap) Download Support
Front Page New Products Carousel for osC 2.3.4 (bootstrap) Download Support

Index Nested - Product Listing for osC 2.3.4 (bootstrapDownload Support
Match Categories in Search Results for osCommerce versions 2.3.x (non-bootstrap) Download Support
Modular Category Page for osC 2.3.4 (bootstrap)
Download Support

NEW Australia Post Shipping Modules for osCommerce 2.3.x (non-bootstrap) Download Support
NEW Equal Height Module for osC 2.3.4 (bootstrapDownload Support
Products Low Stock Report for osC 2.3.x (bootstrap and non-bootstrap) Download Support
Twitter Typeahead Autocomplete Search for osCommerce 2.3.4 (bootstrap and non-bootstrap)
Download Support

Upcoming Products Modules for osC 2.3.4 (bootstrap) Download Support

 
Assisted Add-ons
Scroll Boxes for osCommerce 2.3.x (bootstrap and non-bootstrap) Download Support
 
Bootstrap Add-ons created by other members
osCommerce Bootstrap Addons and Code

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...