empty cart module layout

  • Posts: 19
  • Thank you received: 0
11 years 1 month ago #128143

-- url of the page with the problem -- : proteinasbarcelona.es
-- HikaShop version -- : 2.2.2. hikshop busines
-- Joomla version -- :3.0
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : crhome
-- Error-message(debug-mod must be tuned on) -- : Error_message



hi sorry for bother you guy sending a lost of emails, but im new using hikashop so im learnig,...


so to the think,, i want to put a cart image like this



on my cart module whe its empty as you can see on this picture looks to much simple,




i try to put it bot i dont find the way to add this image in that module.

can you helpme whit this please.
thanks for all youre help.

Attachments:

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

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

Hi,

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.

Last edit: 11 years 1 month ago by Mohamed Thelji.

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

  • Posts: 19
  • Thank you received: 0
11 years 1 month ago #128203

$url_itemid='&Itemid='.$Itemid;
}
$this->setLayout('listing_price');
$this->params->set('show_quantity_field', 0);
$desc = $this->params->get('msg');
$cart_type = $this->params->get('cart_type','cart');
if($cart_type == 'wishlist'){
$convertText = JText::_('WISHLIST_TO_CART');
$displayText = JText::_('DISPLAY_THE_WISHLIST');
$displayAllText = JText::_('DISPLAY_THE_WISHLISTS');
$emptyText = JText::_('WISHLIST_EMPTY');
}else{
$convertText = JText::_('CART_TO_WISHLIST');
$displayText = JText::_('DISPLAY_THE_CART');
$displayAllText = JText::_('DISPLAY_THE_CARTS');
$emptyText = '<img src="images/carrito.jpg" alt="cart empty" height="42" width="42">'.JText::_('CART_EMPTY');
}
if(empty($desc) && $desc != '0'){
$emptyText = '<img src="images/carrito.jpg)" alt="cart empty" height="42" width="42">'.JText::_('CART_EMPTY');
}
if(!headers_sent()){
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );
}
$cart_type=$this->params->get('cart_type','cart');
if($this->params->get('from','no') == 'no'){
$this->params->set('from',JRequest::getString('from','display'));






sorry i think i doit grong. i putit once y set twice and now disapear the car module S(
what can i do help
thanks

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

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

The problem is coming from the fact that you also replaced this line :

if(empty($desc) && $desc != '0'){
  $this->params->set('msg',$emptyText);
}
By
if(empty($desc) && $desc != '0'){
$emptyText = '<img src="images/carrito.jpg)" alt="cart empty" height="42" width="42">'.JText::_('CART_EMPTY');
}

You should revert these changes.

I just wanted your to change these lines :
  $displayAllText = JText::_('DISPLAY_THE_CARTS');
  $emptyText = JText::_('CART_EMPTY');
By
$displayAllText = JText::_('DISPLAY_THE_CARTS');
$emptyText = '<img src="images/carrito.jpg" alt="cart empty" height="42" width="42">'.JText::_('CART_EMPTY');

Last edit: 11 years 1 month ago by Mohamed Thelji.
The following user(s) said Thank You: redconect

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

Time to create page: 0.069 seconds
Powered by Kunena Forum