how to get different pictures on basket ?

  • Posts: 159
  • Thank you received: 0
11 years 1 month ago #129815

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi i want Shopping cart/ Basket picture to be different in different values.

When its empty it shows Empty basket picture like this



and when anything is added into cart it shows this picture



also i want to change the add to cart button. i want to put the picture/style/css in add to cart button like this one




kindly help on doing that . thanks

Attachments:
Last edit: 11 years 1 month ago by Shafan Hameed. Reason: forgot to add one picture

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #129827

Hi,

1. I think that you'll probably find a solution through this thread :

You'll just have to :
- Go to "Hikashop->Display->Views"
- Edit the "Cart" file of the "Product" view of your front-end template
- Change this line :
$emptyText =JText::_('CART_EMPTY');
By :
$emptyText = '<img src="YourImgLink" alt="cart empty" height="42" width="42">'.JText::_('CART_EMPTY');
Note that you'll have to replace the YourImgLink text by the link to your image.


2. You'll also have to edit the code of your cart file or your product view to do that :).

3.You'll probably find a solution through this thread :

Ok, If you want to apply your code through the add to cart button I think that you should probably use this CSS class :

.btn.button.hikashop_cart_input_button.art-button {
}
Also If your code don't seems to be applied; you can for example "force it" by changing this kind of property :
.btn.button.hikashop_cart_input_button.art-button {
background-image:url(../images/button.jpg);
}
Like this :
.btn.button.hikashop_cart_input_button.art-button {
background-image:url(../images/button.jpg) !important;
}

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum