Simple Shopping Cart to Replace Paypal Buttons

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Alex W
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Wed Jan 13, 2016 4:05 am

Simple Shopping Cart to Replace Paypal Buttons

Post by Alex W » Fri Jan 17, 2020 5:53 pm

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/

 
User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 39067
Joined: Sat Apr 05, 2008 9:58 pm

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Webdongle » Fri Jan 17, 2020 6:00 pm

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.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.

Alex W
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Wed Jan 13, 2016 4:05 am

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Alex W » Fri Jan 17, 2020 7:46 pm

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.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 39067
Joined: Sat Apr 05, 2008 9:58 pm

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Webdongle » Fri Jan 17, 2020 8:26 pm

You could use JCE editor and media manager to create links to the cart items that popup in a model?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.

Alex W
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Wed Jan 13, 2016 4:05 am

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Alex W » Sun Jan 19, 2020 12:25 am

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.

User avatar
jenkinhill
Joomla! Explorer
Joomla! Explorer
Posts: 349
Joined: Wed Sep 07, 2005 11:25 am
Location: Lowestoft UK
Contact:

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by jenkinhill » Mon Jan 20, 2020 9:22 am

Force https in .htaccess rather than in Joomla

Alex W
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Wed Jan 13, 2016 4:05 am

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Alex W » Mon Jan 20, 2020 1:25 pm

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]

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 39067
Joined: Sat Apr 05, 2008 9:58 pm

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Webdongle » Mon Jan 20, 2020 2:40 pm

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?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.

Alex W
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Wed Jan 13, 2016 4:05 am

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Alex W » Mon Jan 20, 2020 2:41 pm

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.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 39067
Joined: Sat Apr 05, 2008 9:58 pm

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Webdongle » Mon Jan 20, 2020 3:31 pm

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
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.

Alex W
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Wed Jan 13, 2016 4:05 am

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Alex W » Mon Jan 20, 2020 3:33 pm

Understood. That's what I'm trying to fix.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 39067
Joined: Sat Apr 05, 2008 9:58 pm

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Webdongle » Mon Jan 20, 2020 4:51 pm

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.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein.

Alex W
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Wed Jan 13, 2016 4:05 am

Re: Simple Shopping Cart to Replace Paypal Buttons

Post by Alex W » Wed Jan 22, 2020 2:20 pm

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');

 

Post Reply

Return to “Extensions for Joomla! 3.x”