Community Forums

how can I make a link to checkout of chosen good

Discuss integration with other scripts such as WordPress, Joomla, PHPBB, etc..

how can I make a link to checkout of chosen good

Postby Eugen77777 » Fri Sep 07, 2012 6:53 am

Hello.
I want add external url from html page to OpenCart chechout. I have found a topic with manual how to do it but it doesn`t help.
viewtopic.php?f=20&t=55340&p=259830#p259830

I have done all steps from this topic

I add code to cart.php

Code: Select all
   public function index() {

      $this->language->load('checkout/cart');

if(isset($this->request->get['productid']) && isset($this->request->get['quantity'])){
      //add to the cart
$this->cart->add($this->request->get['productid'], $this->request->get['quantity'], $option = array());
 //you can leave the 3rd $option argument alone..
}

      if (!isset($this->session->data['vouchers'])) {

         $this->session->data['vouchers'] = array();

      }

      


After I try to use OpenCart link to chechout:

http://www.novyjrazum.ru/store/index.ph ... quantity=1

but in IE I have an error: Access is denied.


Help me fix this problem pleas.



Version 1.5.3.1 of OpenCart I use
Last edited by Eugen77777 on Sun Sep 16, 2012 7:52 am, edited 1 time in total.
Eugen77777
 
Posts: 3
Joined: Mon Sep 03, 2012 5:45 pm

Re: add to cart external url

Postby Eugen77777 » Sun Sep 16, 2012 7:50 am

Nobody don`t know how make a link to checkout of chosen good from the shop?
Eugen77777
 
Posts: 3
Joined: Mon Sep 03, 2012 5:45 pm


Return to Integration

Who is online

Users browsing this forum: No registered users and 6 guests

Hosted by Arvixe Web Hosting