Adding to cart to direct to cart & economise checkout

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeAdding to cart to direct to cart & economise checkout

This topic has been marked as resolved.

Two things I’m currently trying to figure out;

Firstly, I’d like shoppers to be directed to the cart page when they click ‘add to cart’.
I find the notification at the top let of a product added easily missable, but very cool none the less.

Secondly, 99% of my shoppers will only buy from my shop once so I’d like to cut down on a few things in the checkout.
I’d need the first section ‘Checkout Options’ where the shopper chooses if he want’s to log in or check out as a guest. I’d like that section gone and just assumes it’s a guest checkout unless logged in.
Then the Payment methods and Delivery methods sections to be combined.
Without these changes, I find the checkout quite needlessly long.

I’m not asking for the exact code here, just an indication of what file and pieces of code I should be looking at.

I’m surprised this hasn’t been asked before, I’m sure alot of people will find this helpful.

August 29, 2011 at 1:00 pm #1193

Hi James,

1) To redirect your customers to the cart page, when they hit “add to cart” button, open catalog/view/theme/shoppica/js/shoppica.js, find this piece of code:

You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!

2) The templates are in catalog/view/theme/shoppica/template/checkout/. However the checkout functionality is a complex process and you could cut nothing, but some not required fields. We can’t help you much here and maybe OpenCart forums will be more suitable place to ask. The other options is to hire someone to do the job for you.

Best regards,
ThemeBurn team

August 30, 2011 at 6:38 pm #1235

Thanks TB!

You wouldn’t happen to be free for the job?
If so, would love it if you throw me a email.

Thanks again!

August 30, 2011 at 9:28 pm #1265

Hi TB,
I have the same first question as stated above ”To redirect your customers to the cart page, when they hit “add to cart” button”, however I am forced to use the 1.4.9 theme (if only the auto_account.xml mod would work for the 1.5 version I would have upgraded right away……).

I noticed shoppica.js in 1.5 is different in the 1.4.9 version. I can’t find any clues where to add the ‘window.location=’index.php?route=checkout/cart’;’
Any clues would be greatly appreciated. PP.

 ppshop
September 1, 2011 at 1:38 pm #1321

@ppshop When you add a product to the cart in opencart 1.4, you are redirected to ‘index.php?route=checkout/cart’ so you really don’t need to modify nothing.

@James Pain We will get in touch with you as soon as we have a little more free time for custom work, but as for now it is extremely busy period and we really can’t take extra load. Very sorry for the inconvenience. I think there are quite a few people in the official opencart forums which do freelance – you could post your request there if you don’t want to wait for us.

September 2, 2011 at 5:54 pm #1420

The code you supplied to redirect customers to the cart only seems to work on catagories, no product pages.

September 4, 2011 at 2:11 pm #1471

@James Pain Open this file

You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!

Kind Regards, ThemeBurn team

September 5, 2011 at 12:53 pm #1491

Ah! Of course!
How silly of me, thank you!

September 5, 2011 at 1:03 pm #1492

Can you guys think of a reason why, on ie, it directs to the category and not the cart?

October 5, 2011 at 10:06 pm #2195

Hi!

Can you try to replace this:

You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
October 10, 2011 at 2:31 pm #2284

Found a solution to the IE problem after looking into it today.
This was not an issue with firefox, just IE and likely one or two other browsers.

The issue was a mix up with the SEO links. The browser was being directed to
website.com/SEO-catagory/index.php?route=checkout/checkout
This showed the category page instead of the cart.

The location param just needed a preceding slash

from this
location='index.php?route=checkout/cart';
to this
location='/index.php?route=checkout/cart';

February 12, 2012 at 5:11 pm #6116

@James Pain

Thanks for the tip!

It seems IE doesn’t use the <base> tag correctly. Glad you’ve found a fix.

Best,
ThemeBurn team

February 13, 2012 at 12:46 pm #6147

Ok, what about Shoppica version 2.1.1 how do we alter the JS file and where is it located?

June 8, 2012 at 5:48 pm #9989
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
June 8, 2012 at 6:35 pm #9995

Thx for the update,

but the code in Shoppica 2.1.1 is a bit different:

if (json['success']) {
  productNotice(json['title'], json['thumb'], json['success'], 'success');
  $('#cart_menu span.s_grand_total').html(json['total_sum']);
  <?php if ($is_mobile == 0): ?>
  $('#cart_menu div.s_cart_holder').html(json['html']);
  <?php endif; ?>
}

as you can see many small details are changed … so what this code should be replaced with?

June 8, 2012 at 7:16 pm #9998
Viewing 15 posts - 1 through 15 (of 22 total)
  • You must be logged in to reply to this topic.