Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 WordPress for Ecommerce Templates
 Payments (Donations) NOT Adding to the CART
Author « Topic »  

capodi
Starting Member

USA
49 Posts

Pre-sales questions only
(More Details...)

Posted - 11/03/2017 :  15:56:02  
I followed the instructions with minor variations for creating a "Payment (Donation)" page; with unsuccessful results.

Issue: The page presents, accepts my edits, and presents the cart with no entries, only a message telling me my cart is empty.


Link: http://hardwoodsound.com/payment.php

Reference: https://www.ecommercetemplates.com/help/donations.asp

To recap...
1) I copied, not saved, products.php to payment.php [brown](not donations.php)[/brown]
I also wen the the WP Pages and added a Payments page with the permalink of .../payment.php

2) I then changed the code in payment.php from
<?php include "vsadmin/inc/incproducts.php"?> to <?php$explicitid="payments"; ?>
and added
<?php include "vsadmin/inc/incspecials.php" ?>

3) I opened vsadmin/inc/languagefile_en.php and change the following two entries
$xxDonat="Direct Payment";
$xxMakDon= "Make A Direct Payment";

4) I then opened payment.php and added the following
<?php
$prodid="payments";
?>
before
<?php include "vsadmin/inc/incspecials.php" ?>

5) Finally, in vsadmin/includes.php I added
//Donation or Payment
$GLOBALS['donationid']="payments";
[brown](not $donationid="payments";)[/brown]

[blue]Please advise as to how I can remediate this issue, thanks.
[/blue]

Warm Regards,
Ronald Capodagli

Edited by - capodi on 11/03/2017 15:59:19

Paradise
Ecommerce Template Guru

USA
1602 Posts

Pre-sales questions only
(More Details...)

Posted - 11/03/2017 :  16:59:31  
It works if you have the www. in front of the link, should be the same as the cart link which does include the www.

http://www.hardwoodsound.com/payment.php

Responsive Design Deals Ecomm Plus - ASP 6.8
www.paradiseclothingco.com

capodi
Starting Member

USA
49 Posts

Pre-sales questions only
(More Details...)

Posted - 11/04/2017 :  03:13:09  
Thanks for the feedback...

I am afraid that in WordPress, leveraging the "www" is much easier said than done...

WordPress will not always put the "www" in front of the URL; and most often will not.

And I am not at all sure that the "www" can be managed to ensure that a "www" is always there in each and every WordPress URL

Nor am I sure how to ensure that my Payments (donation) page and/or the cart page leverages the "www"

I am happy that I was able to follow the instructions on how to bring the Payment (donation) page into a WordPress instance

Now I could really use some help here in getting this issue of "www" remediated.



Warm Regards,
Ronald Capodagli

Andy
ECT Moderator

95440 Posts

Posted - 11/04/2017 :  03:46:51  
You can add this to your htaccess file

# Force the "www."
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

but while you're there you might as well put all your site on https

https://wordpress.org/plugins/wp-force-ssl/

make sure that your store url and https url in the store control panel admin settings are set with the www too.

Andy



Please feel free to review / rate our software

capodi
Starting Member

USA
49 Posts

Pre-sales questions only
(More Details...)

Posted - 11/04/2017 :  17:58:27  
With respect to the htaccess file, I have 3 instances I can find, along with their respective source code:

[blue]/public_html/.htaccess
[/blue]# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
# BEGIN WordPress
# END WordPress

[blue]/public_html/wp-content/uploads/securepdfs/.htaccess
[/blue]Options -Indexes
Deny from all
<FilesMatch '\.(jpg|png|gif|mp3|ogg)$'>
Order Allow,Deny
Allow from all
</FilesMatch>

[blue]/public_html/wp-content/plugins/akismet/.htaccess
[/blue]# Only allow direct access to specific Web-available files.
# Apache 2.2
<IfModule !mod_authz_core.c>
Order Deny,Allow
Deny from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Akismet CSS and JS
<FilesMatch "^(form\.js|akismet\.js|akismet\.css)$">
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>

<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>
# Akismet images
<FilesMatch "^logo-full-2x\.png$">
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>

<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>

[red]So, with respect to the code you provided (below)...
[/red]
What exactly would I type in and where for my site www.hardwoodsound.com ?

[brown]Do I replace "example" with "hardwoodsound" (without the quotes) in each respective statement?
Which of the 3 instances (above) would I update?
Where in the respective instance should the updates (below) be made?[/brown]

[purple]# Force the "www."
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L][/purple]



Warm Regards,
Ronald Capodagli

insight
ECT Moderator

USA
4479 Posts

Posted - 11/04/2017 :  19:29:12  
You want to edit the file at /public_html/.htaccess, the others are of no interest. Just add the new code at the end, so it looks like this:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
# BEGIN WordPress
# END WordPress
#
# Canonical redirect
RewriteCond %{HTTP_HOST} !^www\.hardwoodsound\.com
RewriteRule (.*) http://www.hardwoodsound.com/$1 [R=301,L]

The additional code basically just says if you're not on www.hardwoodsound.com then make it so.

Peter

ServeLink
Professional ecommerce web hosting for ASP & PHP
https://servelink.com

Take a look at our image upload/resize tool for the ASP cart
https://servelink.com/clients/cart?gid=7

capodi
Starting Member

USA
49 Posts

Pre-sales questions only
(More Details...)

Posted - 11/05/2017 :  05:01:15  
Well, is as much as I appreciate the help, my web site not so... :-(

After making the edits to the htaccess file, when I try to access my site, I receive the following message

[red]This page isn’t working
www.hardwoodsound.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS[/red]

I cleared EVERYTHING and the results are the same.

I then tried accessing www.hardwoodsound.com from 3 browsers, Chrome, Edge and IE, all ended up with the same results

I did have to remove the code to regain access to my site.

I am confident that with your help, this issue can be remediated - so, if I may ask but one more question...

Assuming that we get the "www" thing worked out, and I can redirect my Order Entry page to the Payments (donations) page...

[blue]How would I go about passing the 3 pieces of information (amount, name, message) from the host page into my payments (donations) page?
[/blue]

Again, I really do appreciate the help and hold high value to your recommendations for resolve.

Warm Regards,
Ronald Capodagli

Edited by - capodi on 11/05/2017 05:32:48

insight
ECT Moderator

USA
4479 Posts

Posted - 11/05/2017 :  09:01:26  
Probably you have the Store URL on the main settings page in ECT and/or the addresses in the Wordpress General Settings area set to the non-www version. So you wind up in an infinite redirect loop. Check those and make them the same as the redirect rule, with the www.

You need to pick one version (www or non-www, can be either) and stick with it everywhere; your store code, links, printed materials, stuff you do with Google, Super Bowl commercials, whatever, make them all the same.

Peter

ServeLink
Professional ecommerce web hosting for ASP & PHP
https://servelink.com

Take a look at our image upload/resize tool for the ASP cart
https://servelink.com/clients/cart?gid=7

capodi
Starting Member

USA
49 Posts

Pre-sales questions only
(More Details...)

Posted - 11/07/2017 :  08:18:19  
Great reply and it resolved my issue - thanks.

I went to my WP settings and added www to my URLs

I went to my ECT settings and made sure it was www

All is good now... :-)

Warm Regards,
Ronald Capodagli

insight
ECT Moderator

USA
4479 Posts

Posted - 11/07/2017 :  08:47:59  
You're welcome

Peter

ServeLink
Professional ecommerce web hosting for ASP & PHP
https://servelink.com

Take a look at our image upload/resize tool for the ASP cart
https://servelink.com/clients/cart?gid=7
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.01 seconds. Snitz Forums 2000