Add a checkout link or button when the "added to cart" thing shows?

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeAdd a checkout link or button when the "added to cart" thing shows?

This topic has been marked as not resolved.

Hello.

I think with Opencart it is hard for the customer to know where to click when checking out. This theme makes it a little bit easier. But…

When a customer clicks on the buy button (add to cart) then a little window open that confirms that the product is added to the cart. But that only contains the cart link, very small link and the link to the product.

Question: Can I add a checkout button in that thing that pops up when a product is added to the cart? And make the cart link larger?

November 10, 2011 at 1:45 pm #3422

Hello @Davidew!

I think you can achieve what you want easily. Just open catalog/language/english/module/shoppica.php and find this row:

$_['shoppica_text_add_cart']          = '<a href="%s"><strong>%s</strong></a><br /> added to <a href="%s">shopping cart</a>!';

You can edit this row to adjust it to your requirements. To add a link to the checkout, you can modify it like this:

$_['shoppica_text_add_cart']          = '<a href="%s"><strong>%s</strong></a><br /> added to <a href="%s" class="s_f_16">shopping cart</a>! You can <a href="index.php?route=checkout/cart">checkout here</a>.';

Best,
ThemeBurn team

November 14, 2011 at 6:14 pm #3519

Ahh, thats what you do :) I looked in the code and placed another code snippet to make it even better :) But now I have problem to make them stand next to another.

This is what I added. I just tried and it almost looks good.

$_['shoppica_text_add_cart']          = '<div class="align_center clearfix"><a class="s_button_1 s_secondary_color_bgr s_ml_0" href="http://localhost:8888/opencart/index.php?route=checkout/cart"><span class="s_text">Se Kundvagn</span></a><a class="s_button_1 s_secondary_color_bgr s_ml_0" href="http://localhost:8888/opencart/index.php?route=checkout/cart"><span class="s_text">Till Kassan</span></a></div>';

I want “Se Kundvagn” to the left and “Till Kassan” to the right to make it look nice. I have uploaded a picture.

Can I do that?

Big and easy for the customer to just grab the product and make a quick purchase :)

  • This reply was modified 4539 days ago by  Davidew.
November 14, 2011 at 10:30 pm #3529

Try adding this code instead:

$_['shoppica_text_add_cart']  =  '<div class="align_center clearfix"><a class="s_button_1 s_button_1_small s_secondary_color_bgr" href="index.php?route=checkout/cart"><span class="s_text">Se Kundvagn</span></a><a class="s_button_1 s_button_1_small s_secondary_color_bgr" href="index.php?route=checkout/cart"><span class="s_text">Till Kassan</span></a></div>';

Best,
ThemeBurn team

November 15, 2011 at 5:50 pm #3561
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.