Jump to content
Latest News: (loading..)
zpupster

Responsive add to cart button quit

Recommended Posts

Posted (edited)

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

 

Edited by zpupster

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Posted (edited)

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]

Edited by JcMagpie

 

Share this post


Link to post
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.

 

Share this post


Link to post
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>

 


Let's make things easier for new osCommerce users http://forums.oscommerce.com/topic/402638-discussion-about-hard-coded-database-tables/?p=1718900  Getting there with osCommerce 2.4! :thumbsup:

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×