K2Store MyCart / Missing Remove Item Button

Professional Joomla restaurant template comes with a custom animated modules and advanced typography elements.
GK User
Mon Nov 05, 2012 12:33 am
The remove button does not shows up in MyCart / view cart so in the shopping cart. The css style: "k2storeCartRemove" is simple missing from the Restaurant template reference. This button does not show up on your demo page too. You can check it out. Something is overwriting this in your template. If I remove the K2Store and install the new version from there website this button is still not shows up.

What is the solution to this, because users really need to see the remove button so they can actually click on it, right?

Thanks!
User avatar
Fresh Boarder

GK User
Mon Nov 05, 2012 11:21 am
Hi

We are preparing an update on K2 Store component for Restaurant template.
Expect to release tomorrow.

Cheers
User avatar
Platinum Boarder

GK User
Mon Nov 05, 2012 8:29 pm
Great! Thanks!
User avatar
Fresh Boarder

GK User
Mon Nov 05, 2012 8:48 pm
Question: where would I find this K2Store update? Do I need to download the whole restaurant template and then just install this component? Or is there some other ways? Or I will be able to see this update in the joomla template manager/restaurant/updates? Or the joomla update manager will find this this?
User avatar
Fresh Boarder

GK User
Fri Nov 09, 2012 5:31 am
Hi! Have you guys released this update?
User avatar
Fresh Boarder

GK User
Mon Nov 12, 2012 12:00 am
Would you please respond to my question: did you release this update? It's been 6 days now, and you promised "tomorrow" 6 days ago.
If there is an update: where can I download it? I can not see this update in the updates component section.

You have to agree: without the viewable remove button in the shopping cart the shopping cart and the whole template is just not usable. Regards,
User avatar
Fresh Boarder

GK User
Mon Nov 12, 2012 3:32 am
Hi

I think the update will be release tomorrow, but you can download attach file, decompress and replace the following files:

../css/k2.css
../css/style1.css
../css/style2.css
../css/style3.css
../css/css_noprefix/k2.css
../css/css_noprefix/style1.css
../css/css_noprefix/style2.css
../css/css_noprefix/style3.css

Remove all files on ../html/com_k2store/

Them add this files:

../html/com_k2store/checkout/cartsummary.php
../html/com_k2store/checkout/default.php
../html/com_k2store/checkout/form.php
../html/com_k2store/mycart/addtocart.php
../html/com_k2store/mycart/ajax.php
../html/com_k2store/mycart/default.php
../html/com_k2store/orders/print.php

Finally go to template parameters > Fonts and add the following font selectors on Headers - selectors:

.k2store_login_box legend,
.k2store_register_box legend

Cheers

k2_store_2.6.1_update_restaurant.zip
User avatar
Platinum Boarder

GK User
Mon Nov 12, 2012 7:24 am
Hi!
Thanks for your respond!
I applied these updates and then I run into more issues.
1) the shopping cart layout completely broken apart.
2) this updates put the k2 store plugin folder name in front of everything.
( example: instead of: CHECK OUT or ADD TO CART there is: K2STORE_CHECK_OUT or K2STORE_ADD_TO_CART, and all of them like this)
3) When you get to the check out page: it is white, blank with just some text on the bottom:
"K2STORE_CARTSUMMARY_PRODUCTS K2STORE_CARTSUMMARY_QUANTITY K2STORE_CARTSUMMARY_TOTAL"
and thats all.

I have attached a screenshoot so you can see what happens.

... Well looks like I can not attache a file. When I attache it just nothing happens...
But here it is:
http://beta.bjcakeshop.co.uk/K2-Store-R ... issues.jpg

I also tried this with a brand new quickstart install. Untouched. On a testing server and on a live server.
I got the same result.

The current beta site is here:
http://beta.bjcakeshop.co.uk

This one does not have this update what you provided,.(I tested it with an another beta install)

Let me know what do you think.
Thanks for your help solving out this issue.
User avatar
Fresh Boarder

GK User
Wed Nov 14, 2012 6:57 am
Well, I have find a solution.

I did not use the updates, those updates should be prepared better so no one needs to rename a bunch of stuff and mess with them.

I could add only text instead of the remove button image in the K2 Shopping cart. (the image just doesn't work)

So: don't use the update, just overwrite these 2 files:

../html/com_k2store/mycart/ajax.php

on Line 70 (or search for"k2storeCartRemove"):
change the current one to this:
<td style="width: 10px;" ><a title="Remove Item" onclick="k2storeCartRemove(this, <?php echo $item->cart_id; ?>, <?php echo $item->product_id; ?>, 1)">
<div class="k2storeCartRemove">REMOVE</div>
</a></td>

../html/com_k2store/mycart/default.php

on line 112 (or search for"k2storeCartRemove"):
change it to this:
<td><a href="#" title="<?php echo JText::_( 'REMOVE ITEM' ); ?>" onclick="k2storeCartRemove(this, <?php echo $item->cart_id; ?>, <?php echo $item->product_id; ?>, 2)">
<div class="k2storeCartRemove">REMOVE</div>
</a> </td>

And I also realized all those " K2STORE_ETC_ETC" stuff in front of all the text in your update is just simply needs to be overwritten in the php files, so would be a great idea to make this adjustment and get this update right.

But there are other problems with the update too.

Regards,
User avatar
Fresh Boarder

GK User
Fri Nov 16, 2012 2:20 am
Hi again

Are you sure that you upgrade K2 Store to version 2.6.1? :huh:
You are having this problem because most probably you didn't update properly the K2 Store Component files.
Specially the K2 Store language file.
That's why you see untranslated strings.

Naturally it's not suppose to work this way ... i mean hardcore translation ;)

Our files attached are only the update k2 store theme used on restaurant html directory.
User avatar
Platinum Boarder

GK User
Fri Nov 16, 2012 2:44 am
Thanks for your respond!

hmm...

well, I missed that part.

I wish you could just mention that: update the k2store Before change the files... But next time I will pay more attention in hidden details.
Thanks for your help!

:)
User avatar
Fresh Boarder

GK User
Fri Nov 16, 2012 6:33 am
Works perfectly! thanks again for your help!

sorry for that I missed the point!
User avatar
Fresh Boarder


cron