-
AuthorPosts
-
hoknight Friend
hoknight
- Join date:
- July 2009
- Posts:
- 400
- Downloads:
- 128
- Uploads:
- 225
- Thanks:
- 110
- Thanked:
- 4 times in 4 posts
January 24, 2017 at 3:23 am #1004986Dear Support,
We have installed a Virtuemart plugin "Quantity related price calculation", but it can’t display on Ja Template.The Virtuemart Developer said it is caused by template issues.And he gave the below code to fix this problem.But I’m not sure how to insert this code into default.php in productdetails.
Can you have a look and help to fix on our site using this code?
$productDisplayTypes = array(‘productDisplayShipments’, ‘productDisplayPayments’);
foreach ($productDisplayTypes as $productDisplayType) {if(empty($this->$productDisplayType)){
continue;
} else if (!is_array($this->$productDisplayType)) {
$this->$productDisplayType = array($this->$productDisplayType);
}foreach ($this->$productDisplayType as $productDisplay) {
if(empty($productDisplay)){ continue;
} else if (!is_array($productDisplay)){
$productDisplay = array($productDisplay);
}foreach ($productDisplay as $virtuemart_method_id =>$productDisplayHtml) { ?>
<div class="<?php echo substr($productDisplayType, 0, -1) ?> <?php echo substr($productDisplayType, 0, -1).’-‘.$virtuemart_method_id ?>">
<?php
echo $productDisplayHtml;
?>Plugin tutorials page:
http://extensions.virtuemart.net/all-tutorials/10-calculation-rules/11-quantity-pluginPlugin demo:
http://demo.virtuemart.net/quantity-discountLive site: https://shop.gcc.org.hk/all-products/%E7%A6%AE%E5%93%81/gnci177mp3-detail.html
Thanks.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 24, 2017 at 10:26 am #1005115Hi
The path of the file is
/html/com_virtuemart/productdetails/default.php In the template folder, this is an override of the VM product files, Can u check the insertion of code place becuase there are different container area in product details page.
If possible you can share this file with VM support team so they can guide you better to place the code.
Let me know if there is anything need to be changed in the template.Best Regards
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 1 reply, has 2 voices, and was last updated by Pankaj Sharma 7 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Can't display Virtuemart plugin on Product details page
Viewing 2 posts - 1 through 2 (of 2 total)