Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Responsive add to cart button quit


zpupster

Recommended Posts

hello support,

 I am using 2.3.4 responsive oscommerce.

my add to cart button quit working .  it does not add the product to the cart.

 

reading thru some other posts, they had an update to this line of code, but this looks right. any suggestions???????

 


 

<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')). 'action=add_product', 'NONSSL'), 'post', 'class="form-horizontal" role="form"'); ?>

 i have recently added this to ,htaccess

 

IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

and

# BEGIN protect xmlrpc
<IfModule mod_alias.c>
Redirect 301 /xmlrpc.php http://127.0.0.1
</IfModule>
# END protect xmlrpc

 i am not sure if this has anything to do with it.

 

craig

 

Link to comment
Share on other sites

hello support,

IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

ok removing this the add to cart button works.

How are oscommerce users handling the Not secure warning in the URL of google Chrome?

 

 

Craig

Link to comment
Share on other sites

It all depends on how you have set up your store. Try this

# Prevent Apache from serving .htaccess files:
<FilesMatch "^\.htaccess">
    Order allow,deny
    Deny from all
</FilesMatch>

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

 

Link to comment
Share on other sites

11 minutes ago, zpupster said:

How are oscommerce users handling the Not secure warning in the URL of google Chrome?

You need to make the whole shop work with ssl. All you need to for that is change your configure files and add redirect code to the .htaccess file. This thread explains what is needed.

For the original problem,  it was most likely due to the FILENAME_PRODUCT_INFO in the code. That is a definition that is not used in the CE version of oscommerce. Change it to 'product_info.php' (include the apostrophes) to fix it.

 

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

IfModule mod_rewrite.c>
 RewriteEngine On 
 RewriteCond %{HTTPS} off 
 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
</IfModule>

Did you forget the opening bracket? <

<IfModule mod_rewrite.c>
 RewriteEngine On 
 RewriteCond %{HTTPS} off 
 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
</IfModule>

 

osCommerce user since 2003! :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...