News:

Support the VirtueMart project and become a member

Main Menu

Turn off "Shipment price display in product details" in 2.6.8?

Started by vaskern, August 17, 2014, 14:15:24 PM

Previous topic - Next topic

vaskern

I noticed shipment info is included along with the price on the product page (a new feature of 2.6.8 ). Great feature, but for now I would like to turn it off - any setting for that?

jenkinhill

This feature was requested by many VM users. When I don't need it ATM I comment out or remove the code from components/com_virtuemart/views/productdetails/tmpl/default.php  and use the edited fille as a template override.


if (is_array($this->productDisplayShipments)) {
    foreach ($this->productDisplayShipments as $productDisplayShipment) {
echo $productDisplayShipment . '<br />';
    }
}
if (is_array($this->productDisplayPayments)) {
    foreach ($this->productDisplayPayments as $productDisplayPayment) {
echo $productDisplayPayment . '<br />';
    }
}
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

baloe98

It is a nice extra but it should be nicer if you can choose to turn it on or out.

grt

Adri

jpsosiego

I think is a bad idea to put shipping cost in every product, because shipping cost is calculated when user finally selected all items he need to buy, and total shipping cost for whole order will be lower than for a single per single product, then if user see, for example, 5 usd  plus for every product, maybe he decide not to buy on that virtual store.

KHM

I tried the follow the removal procedure and commented out the suggested block but  text is still present.

What (else) am I missing?

Thanks.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

KHM

Well there's no doubt I did it in the right file, even removed the entire section and emtpied cache but the text is still there.
Attachments (edit: added a second one ) also shows some text (in native tongue) suggesting pickup at the store is free. Sticky too.

What else do I need to do? Blank out some text string files?



[attachment cleanup by admin]

GJC Web Design

sorry - don't believe you.. if you really removed / commented that code from the right file then that code can't show..
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

Unless a template override is being used.....

I believe a switch for this has been added in 2.6.8a - currently available to VM Support Members
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

cornelius123

Upload default.php to /templates/templatename/html/com_virtuemart/productdetails

KHM

Surprising not to be believed when one have followed instructions given down to the minute detail.

I admit not to be a hard core developer, and on top of that very rusty with the methodologies and architecture of Joomla (been a few yrs since I used it last). But not completely lost, and thus can follow exemplified exercises and if nothing else hope to reproduce results.

But I am grateful for contributions, they helped me out and/or set the focus and find the right file. An override by the template in used clearly mislead me. 

The field with subsequent text as shown in previously submitted snapshots originated from a template, and under templates/templatename/html/com_virtuemart/productdetails I found the default.php had code in it forcing the text to display.

By commenting out the code section reflecting the text/fields it went away. I'll bring up the question with those who developed the template.

Thanks for the help :)

GJC Web Design

QuoteSurprising not to be believed when one have followed instructions given down to the minute detail.
ah  - there's the rub ... you didn't   ;)

QuoteWhen I don't need it ATM I comment out or remove the code from components/com_virtuemart/views/productdetails/tmpl/default.php  and use the edited fille as a template override.

If you tried this you would have discovered your template over ride already there... and....  ;)
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

KHM

No I misunderstood the term used which is why the extra loop. That would be the rub.

In any event, thanks to the guiding posts I managed to inch myself towards a solution and am grateful for help given. Next time I see the term override I know what to do.

End of story.
Thanks

Veter

Tell me please, can anyone know which file you need to translate this string into your language?

GJC Web Design

it is in the shipping plugin - if you use the weight_countries
plugins/vmshipment/weight_countries/weight_countries/tmpl/default.php  - last line
hard coded - tsk tsk
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation