-
AuthorPosts
-
calavaro Friend
calavaro
- Join date:
- August 2013
- Posts:
- 125
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 28
- Thanked:
- 24 times in 1 posts
September 14, 2013 at 3:34 pm #190607Hi,
I have managed to make the template look the way I want, except the below details. When I can solve these problems I can finally call it done. Any assistance would be greatly appreciated. Thank you.
1. How to show Standard price, Discounted price and Discount amount (if space permits, otherwise Standard and Discounted prices are enough) on the front page modules? Right now it only shows one price with no indication if that is the Standard or Discounted price.
2. In category view, how to to show Standard price, Discounted price and Discount amount? Right now it only shows Discounted price and Discount amount. (Alternatively show Standard price and Discounted price only)
3. In detailed view, how to show Standard price, Discounted price and Discount amount?
4. Standard price should have a strike through if a discounted price is enabled. No strike through if no discount.
Again, thank you so much for any help.
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 16, 2013 at 10:07 am #505924Hi calavaro,
It is nice that you do share us your concerns. Here are my detailed answers and suggestions on them:
1. The front-end of JA VM Products module and VM Products module is the customized layout with fitted elements so that I suggest you shouldn’t display the Discount/Standard prices on it. Since, the new elements will break our module’s front-end as you did with the additional custom fields.
In this case, you can use the hot label at the top right of item on module’s front-end. i.e: hot, sale. << You can replace with a image of “-50%” or “free shipping”.
Open templatesja_hawkstorelessvmsite-rtl.css, in lines:
span.label.hot {
background-image: url("../images/ico/icon_hot_ltr.png");
}
>> You can change to your image and class suffix (hot)
2/3. In order to display the additional prices on VM category view and product details by going to Virtuemart >> Configuration >> Configuration >> Pricing. Then select and configure price types you want to display.
4. This last concern is related to customizing the VM core conditional function in displaying the prices so that i suggest you to raise a question at https://forum.virtuemart.net/ for better solution. Other VM expericened users can give you any suggestional codes in this case.
calavaro Friendcalavaro
- Join date:
- August 2013
- Posts:
- 125
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 28
- Thanked:
- 24 times in 1 posts
September 16, 2013 at 8:35 pm #505987Hi Leo,
Thanks for your reply.
1. In my opinion, and in every store owners opinion showing 2 prices is the key to entice and engage customers. Without Standard and Discounted prices you ask the customer to have faith and blindly click through product after product, not knowing what the discount may be, if any at all…. customers will lose interest very quickly, specially since there are so many competitors who does show standard and discounted prices, with lots of bells and whites to draw quick attention and generate pressure for a quick sale.
One must have Standard price, Discounted price (and if space permits the discount amount).
This is something is very strongly urge you to implement in an updated version of the modules (and quickly too 😉 ).There is plenty of space to include at least Standard and Discounted prices without breaking layout. See picture.
Also, how do I get the suffix “Sale” or “Hot” or whatever to show up on the top tabs?
See image.2/3. About the prices layout. I have enabled ALL prices to show. But only 3 show up at most.
What further confuses me about your template is what is shown in the picture. On category page it shows the correct pricing, but on the detailed product page the pricing is wrong. Are you saying this is a VM problem? I have never seen VM wrongly report prices before…4. Understood, thanks.
Again, thank you for your continued assistance. I’m just trying to sort this template out properly. If we can have the problems solved, I don’t mind writing up a tutorial on how to modify certain aspects of the template (just as I have done).
- phong nam Friend
phong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 17, 2013 at 10:23 am #506072Hi calavaro,
I came back. Lets me explain in details on your concern below:
1. If you can wait me some time, I will try to edit our JA VM Products modules layout for displaying the discounted/standard prices. Since, as you know your requirement is related to the customization work, i will spend time after daily work. Lets send me a PM with your email address, I will notice you when I finish to adjust our module layout. Is it fine, calavaro ?
On displaying the hot/sale layout on our JA VM Products modules front-end, you can open templatesja_hawkstorehtmlmod_virtuemart_productdefault.php file at 33th line (before <div class=”spacer”>), insert these lines:
<?php if($addclass){ ?>
<span class="label <?php echo $addclass;?>"><?php echo $addclass;?></span>
<?php }?>2/3. Yes, there is a tiny different parameter of displaying these price types on VM Category view and product details, since we don’t customize the show_prices layout of VM component on our template. Anyways, I fixed by moving the default_show_prices.php from component folder to our HTML folder and replace 47 lines with:
if (round($product->prices['salesPriceWithDiscount'],$this->currency->_priceConfig['salesPrice'][1]) != $product->prices['salesPrice']) {
echo $this->currency->createPriceDiv ('salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $product->prices);
}>> The discounted price without tax displays fine on product details now.
4. You are welcome. You can share your tips at http://www.joomlart.com/forums/forumdisplay.php?454-JA-Hawkstore-Guides-Tutorials-Tips so that other JA members can benefit from your experiences. Thank you !
Note: I have sent PM, please check my suggestion.
1 user says Thank You to phong nam for this useful post
calavaro Friendcalavaro
- Join date:
- August 2013
- Posts:
- 125
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 28
- Thanked:
- 24 times in 1 posts
September 19, 2013 at 1:15 am #506279Hi,
1. I will await your return. Thanks so much for working hard at it!
The code below was already present in the file templatesja_hawkstorehtmlmod_virtuemart_produc tdefault.php
I even tried pasting at again, but it still didn’t show the labels. Sadly it didn’t work.
<?php if($addclass){ ?>
<span class="label <?php echo $addclass;?>"><?php echo $addclass;?></span>
<?php }?>2/3. Thank you so much. It is great now. (I could say that the discounted price line shouldn’t show if there is no discount, but I am not feeling greedy…)
4. As soon as this is done I will attempt to write some short guides on how to modify the things I have modified.
Thanks again for your hard work.
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
September 19, 2013 at 10:37 am #506357Hi calavaro,
On displaying Hot/Sale label on the JA VM Products modules, truly I guided you to change wrong folder, it is my mistake. Well, you can backup and open templatesja_hawkstorehtmlmod_javmproductsdefault.php, replace 7th line:
<div class="slide floatleft">
with
<?php
$addclass = '';
if(isset($product->customfields)){
foreach ($product->customfields as $prdcs){
if($prdcs->custom_title == JText::_('JA_CUSTOMFIELDS_NAME')){
$addclass = ' '.strtolower(str_replace(" ","-",trim($prdcs->custom_value)));
}
}
}
?>
<div class="slide floatleft">
<?php if($addclass){ ?>
<span class="label <?php echo $addclass;?>"><?php echo $addclass;?></span>
<?php }?>The label will display fine then.
calavaro Friendcalavaro
- Join date:
- August 2013
- Posts:
- 125
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 28
- Thanked:
- 24 times in 1 posts
September 19, 2013 at 5:15 pm #506386Edit: I was wrong… It works.
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
calavaro Friendcalavaro
- Join date:
- August 2013
- Posts:
- 125
- Downloads:
- 7
- Uploads:
- 34
- Thanks:
- 28
- Thanked:
- 24 times in 1 posts
September 20, 2013 at 6:48 am #506444Hi,
I blame lack of coffee, no glasses, long night, full moon, autumn and a total lack of reading comprehension.
But yes, your solution did in fact work. Sorry for the confusion.All the best,
Calavaro
1 user says Thank You to calavaro for this useful post
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by calavaro 11 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum