Page 1 of 1

Simple Shopping Cart to Replace Paypal Buttons

Posted: Fri Jan 17, 2020 5:53 pm
by Alex W
I recently signed up with a credit card processor in order to move away from PayPal and their high transaction fees. However, this means I need to setup my own shopping cart system on my site.

What I'm looking for is a simple plugin that allows me to create products (some of which need to be configurable with drop downs and / or check boxes) and insert the configuration and add to cart buttons into an existing article. Basically, I want the same functionality I currently get with PayPal's hosted buttons, but built into my site. I don't want a shopping cart plugin that forces me to rebuild my entire site around the plugin (as most of them seem to do).

So far I have tried the following, and it doesn't seem like any of them do what I am looking for.
J2 Store
Hika Shop
Phoca Cart

Does anyone have any suggestions that might help?
Here's my site so you can see what I'm trying to accomplish https://wilhelmraceworks.com/

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Fri Jan 17, 2020 6:00 pm
by Webdongle
With any shopping cart you will need a plugin to send the data to Payment gateway. You have chosen not to use Paypal so you will need to send the details to the 'credit card processor' that you signed up with. I suggest you contact your 'credit card processor' to get advice on how to do it. Also look at the shopping carts and see if they have a plugin for the 'credit card processor' that you signed up with.

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Fri Jan 17, 2020 7:46 pm
by Alex W
Thanks, but that's not the part I'm having trouble with (not yet anyway). It's the product configuration and integration into my existing site that none of the systems I have tried so far are doing the way I want. I'm just looking for suggestions for a shopping cart plugin that basically allows you to create buttons similar to PayPal that you can then insert into an article.

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Fri Jan 17, 2020 8:26 pm
by Webdongle
You could use JCE editor and media manager to create links to the cart items that popup in a model?

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Sun Jan 19, 2020 12:25 am
by Alex W
OK, I think J2Store is going to be my best option. Not perfect in every way, but overall it does what I'm looking for.

HOWEVER, now I have a new problem. I'm not sure if it's a Joomla problem or a J2Store problem, so I will ask it here as well as emailing their support about it.

I have created duplicate pages for two products for testing, found here:
https://wilhelmraceworks.com/test
https://wilhelmraceworks.com/test2

The problem is, the add to cart button isn't working. When you view the console, it shows the following error:

Blocked loading mixed active content “http://wilhelmraceworks.com/cart/additem

Note that it's trying to run the additem script (or whatever it is) as an HTTP request instead of HTTPS like the rest of the site. Any idea what could be causing this? I have force HTTPS turned on for the entire site in the Joomla config. There aren't any settings in J2Store that I can find that would relate to this.

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Mon Jan 20, 2020 9:22 am
by jenkinhill
Force https in .htaccess rather than in Joomla

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Mon Jan 20, 2020 1:25 pm
by Alex W
jenkinhill wrote:
Mon Jan 20, 2020 9:22 am
Force https in .htaccess rather than in Joomla
Should have mentioned, I have that as well. Or at least I think I do, this is the code from .htaccess that I believe is supposed to be handling this.

RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Mon Jan 20, 2020 2:40 pm
by Webdongle
Alex W wrote:
Mon Jan 20, 2020 1:25 pm
jenkinhill wrote:
Mon Jan 20, 2020 9:22 am
Force https in .htaccess rather than in Joomla
... I have that as well. ...
Could having both be causing a problem?

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Mon Jan 20, 2020 2:41 pm
by Alex W
I wondered about that and have tried disabling each in turn and it didn't seem to make any difference. But I will give it a try again just in case.

EDIT: Tried again, and there may be something else going on as well. By disabling the HTTPS redirect in .htaccess AND turning it off in Joomla I was able to access a non-secure version of my site. I still couldn't add to cart, although the error about mixed content was gone from the console. So, I'm not sure what's going on now.

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Mon Jan 20, 2020 3:31 pm
by Webdongle
Mixed content warnings are whenn an https page has an image/link to a non https page.
e.g.
Your page is https://asite.com and the is an image displayed from http://somesite.com

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Mon Jan 20, 2020 3:33 pm
by Alex W
Understood. That's what I'm trying to fix.

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Mon Jan 20, 2020 4:51 pm
by Webdongle
Then check for the extension using a full path instead of relative path. It is not the way the site routes to https ... it is something writing http in a link on the page.

Re: Simple Shopping Cart to Replace Paypal Buttons

Posted: Wed Jan 22, 2020 2:20 pm
by Alex W
It was something burried in one of the php files. No idea how it ended up wrong, as it was just how it installed, but J2Store support figured it out and provided a fix quite promptly. I will post here just in case anyone else is running into the same issue.
Navigate to "administrator/components/com_j2store/helpers/product.php". Around 1026, you would find this:

$product->cart_form_action = JRoute::_('index.php?option=com_j2store&view=carts&task=addItem');

Change it to:
$product->cart_form_action = JRoute::_('index.php?option=com_j2store&view=carts');