- Posts: 9
- Thank you received: 0
Make Changes to Product Listing Page
- ebridalfabric
-
Topic Author
- Offline
Less
More
11 years 11 months ago #178056
by ebridalfabric
Make Changes to Product Listing Page was created by ebridalfabric
hello,
my shop url:
www.gradtutors.com/bookstore
How can I do the following?
1) edit the 10% so that its not next to the price, remove text "each"
2) Remove product code only on the product listing page
3) remove x items in stock only on listing page
Thanks
my shop url:
www.gradtutors.com/bookstore
How can I do the following?
1) edit the 10% so that its not next to the price, remove text "each"
2) Remove product code only on the product listing page
3) remove x items in stock only on listing page
Thanks
Please Log in or Create an account to join the conversation.
11 years 11 months ago #178069
by Xavier
Replied by Xavier on topic Make Changes to Product Listing Page
Hi,
1) For the 10% you have to edit the view "product / listing_price" and add a php condition to restrict the display if:
For "each", you have to do a translation override on the key "PER_UNIT".
hikashop.com/support/faq.html#tran
2) Add the following code at the top of the view "product / listing_img_title"
3) You have to edit the view "product / quantity" and add a php condition as 1).
1) For the 10% you have to edit the view "product / listing_price" and add a php condition to restrict the display if:
Code:
JRequest::getCmd('layout') != 'show'
2) Add the following code at the top of the view "product / listing_img_title"
Code:
$this->config->set('product_code',0);
3) You have to edit the view "product / quantity" and add a php condition as 1).
Please Log in or Create an account to join the conversation.
- ebridalfabric
-
Topic Author
- Offline
Less
More
- Posts: 9
- Thank you received: 0
11 years 11 months ago #178248
by ebridalfabric
Replied by ebridalfabric on topic Make Changes to Product Listing Page
I still have trouble with the following:
1) edit the 10% so that its not next to the price
the 10% appear in front of the price, doesn't look good at all. Is there simple way to update in configuration, so that I can display a strikethough of the original price? Can I make the 10% on the next line after price
3) remove x items in stock only on listing page. When I update, the stock level on product detail page disappear as well. So is there a way to update only the listing page?
1) edit the 10% so that its not next to the price
the 10% appear in front of the price, doesn't look good at all. Is there simple way to update in configuration, so that I can display a strikethough of the original price? Can I make the 10% on the next line after price
3) remove x items in stock only on listing page. When I update, the stock level on product detail page disappear as well. So is there a way to update only the listing page?
Please Log in or Create an account to join the conversation.
11 years 10 months ago #178250
by Xavier
Replied by Xavier on topic Make Changes to Product Listing Page
Hi,
1) You can edit the value of the option "show taxed price", but to have the 10% displayed under the price it will require more editions.
3) Do you have used code like that:
1) You can edit the value of the option "show taxed price", but to have the 10% displayed under the price it will require more editions.
3) Do you have used code like that:
Code:
if(JRequest::getCmd('layout') != 'show'){
if($this->row->product_quantity==1){
if(JText::_('X_ITEM_IN_STOCK')=='X_ITEM_IN_STOCK'){
$text = JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity);
}else{
$text = JText::sprintf('X_ITEM_IN_STOCK',$this->row->product_quantity);
}
}else{
$text = JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity);
}
echo '<span class="hikashop_product_stock_count">'.$text.'<br/></span>';
}
Please Log in or Create an account to join the conversation.
Time to create page: 0.175 seconds