Post by motogonki » Thu Dec 17, 2015 9:36 pm

Hi there!

We working with a store based on OC 2.*, there is a MySQL database with items... you know. Also, we have few mini-sites (basicaly, they are static html pages), that contains some of items from the Main Base with images and descriptions. So, we would like to add there "BuyNow" button, like in Paypal.

Need a feature, the dinamicaly generated (on Main Site) form with the button "Buy Now", called as a script from the extrenal page

Code: Select all

<script type="text/javascript" src="//my.site.com/buynow?id=777"></script>
or something like that. ID is already known. Pushing the button, customer adds the item (ID, qnt=1) to Basket on my.site.com, then go to index.php?route=checkout/cart. Goal!

Have some?

Newbie

Posts

Joined
Thu Dec 17, 2015 9:15 pm

Post by IP_CAM » Fri Dec 18, 2015 10:08 am

Look here:
http://forum.opencart.com/viewtopic.php?f=20&t=125365

and/or Google exactly for this:

Code: Select all

+add+product+to+cart+using+php+in+opencart
to find out, how this basically may work!
Good Luck ;)
Ernie
bigmax.ch/shop/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by motogonki » Fri Dec 18, 2015 11:31 pm

Great, Ernie! Both methods woks fine. Thank you very much for the tip. Merry Christmas!

Newbie

Posts

Joined
Thu Dec 17, 2015 9:15 pm
Who is online

Users browsing this forum: No registered users and 2 guests