Author Topic: Custom field layout position VM 2.0.1  (Read 85721 times)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10740
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Custom field layout position VM 2.0.1
« Reply #30 on: January 17, 2015, 22:58:45 pm »
You should really start your own topic for this - hardly relates in any way to this topic
Can't see anything wrong with your custom field setup..

Maybe try non crylic letters in title etc?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kelecz

  • Beginner
  • *
  • Posts: 49
    • Staffy
Re: Custom field layout position VM 2.0.1
« Reply #31 on: January 18, 2015, 09:16:42 am »
You do not understand. When Custom fields is created and when I am in product settings I can not any of size or color in from Custom field. (first picture)
How is that not related?

THX
staffy.mrpet.rs

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10740
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Custom field layout position VM 2.0.1
« Reply #32 on: January 18, 2015, 12:57:23 pm »
because this is a sticky topic about positioning the display of custom fields on the FE in an extremely early release of VM2 dating back 2 years - nothing to do with their configuration or access from admin in the last stable release of VM2.6
This forum is supposed to be a resource for all VM users - not just a place for your question to be answered

Therefore it makes sense to start your own topic instead of burying it at the end of a long unrelated topic.. where if some else has a similar problem the chance of them finding the subject is null

did u try non crylic letters?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kelecz

  • Beginner
  • *
  • Posts: 49
    • Staffy
Re: Custom field layout position VM 2.0.1
« Reply #33 on: January 19, 2015, 00:46:24 am »
because this is a sticky topic about positioning the display of custom fields on the FE in an extremely early release of VM2 dating back 2 years - nothing to do with their configuration or access from admin in the last stable release of VM2.6
This forum is supposed to be a resource for all VM users - not just a place for your question to be answered

Therefore it makes sense to start your own topic instead of burying it at the end of a long unrelated topic.. where if some else has a similar problem the chance of them finding the subject is null

did u try non crylic letters?

Thank you. I have to admit that have small experience on all kind of forums. I understand and I am sorry.

I will take care in the future. Sorry again. 
staffy.mrpet.rs

fotonio

  • Beginner
  • *
  • Posts: 30
Re: Custom field layout position VM 2.0.1
« Reply #34 on: July 12, 2015, 13:21:00 pm »
Hi, i see the topic is for VM 2.0.1 but i am using VM 3.0.9.4 with the default template and joomla 3.4.1. Is there any related topic for VM 3.* ?

My problem is i am trying to create a new position for a custom field using this code in the file:
\my joomla root folder\components\com_virtuemart\views\productdetails\tmpl\default.php

After default code:
// Product Packaging
    $product_packaging = '';
    if ($this->product->product_box) {
   ?>
        <div class="product-box">
       <?php
           echo vmText::_('COM_VIRTUEMART_PRODUCT_UNITS_IN_BOX') .$this->product->product_box;
       ?>
i added:
<?php if (!empty($this->product->customfieldsSorted['myposition'])) {
       $this->position='myposition';
       echo $this->loadTemplate('customfields');
       }
       ?>

And of course i use myposition as layout position in the custom field admin configuration.
But the field does not appear at all at the product's page.

Any help would be appreciated.


Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4680
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Custom field layout position VM 2.0.1
« Reply #35 on: July 12, 2015, 14:41:17 pm »
hi fotonio,
do a
Code: [Select]
var_dump($this->product->customfieldsSorted);to check if you have some "myposition' customfield set.
you check product_box in your code
Code: [Select]
  if ($this->product->product_box) {perhaps that simply product is empty ?

Greets,
Patrick

fotonio

  • Beginner
  • *
  • Posts: 30
Re: Custom field layout position VM 2.0.1
« Reply #36 on: July 14, 2015, 07:17:17 am »
The solution for VM3 is to put this snippet in the file \my joomla root folder\components\com_virtuemart\views\productdetails\tmpl\default.php wherever you want the custom field to appear.

<?php
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'myposition'));
?>

jade Quinton

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Custom field layout position VM 2.0.1
« Reply #37 on: November 06, 2015, 21:58:37 pm »
Hello, please could someone point me in the right direction, I have been struggling with the "related products" that appear on the bottom of the page when you view a product in Virtue mart. They always appeared correctly but afew days ago I noticed they had  become very large, displaying vertically down the page. The images are completely stretched. I have removed the template completely and re-copied the original but that didn't even seem to work. I'm not sure where the issue is lying? I'm stumped!
Joomla! 2.5.8, not sure the version of virtuemart.
Here's what it looks like: http://purejewellery.co.za/index.php/engagement-rings/er450-detail
If someone could guide me to remove related products completly from default_relatedproducts.php that would be amazing.
Any advice would be appreciated. Thanks a mil. Jade


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10740
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Custom field layout position VM 2.0.1
« Reply #38 on: November 06, 2015, 23:35:17 pm »
STOP cross posting esp. in a totally unrelated POST!
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

design609

  • Jr. Member
  • **
  • Posts: 68
Re: Custom field layout position VM 2.0.1
« Reply #39 on: October 03, 2018, 14:25:37 pm »
The solution for VM3 is to put this snippet in the file \my joomla root folder\components\com_virtuemart\views\productdetails\tmpl\default.php wherever you want the custom field to appear.

<?php
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'myposition'));
?>

Thanks - worked ! custom field placement on product detail page for Virtuemart 3

Елeна

  • Beginner
  • *
  • Posts: 19
Re: Custom field layout position VM 2.0.1
« Reply #40 on: March 14, 2019, 18:45:51 pm »
Hello
Works great!
Quote
Решение для VM3 состоит в том, чтобы поместить этот фрагмент в файл \ моя корневая папка joomla \ components \ com_virtuemart \ views \ productdetails \ tmpl \ default.php везде, где вы хотите, чтобы появилось настраиваемое поле.

<? php
echo shopFunctionsF :: renderVmSubLayout ('customfields', array ('product' => $ this-> product, 'position' => 'myposition'));
?>
VirtueMart 3.4.2 / Joomla! 3.8.12 / protostar/ site

This, but only for the category page !?
,,,/templates/protostar/html/com_virtuemart/sublayouts/products.php
--
In the category all products are the same, and one is special. It is necessary to highlight it by labeling the picture
Thanks

Code: [Select]
// Show Products ?>

<div class="product vm-col<?php echo ' vm-col-' $products_per_row $show_vertical_separator ?>">
<div class="spacer product-container">
<div class="vm-product-media-container">
<a title="<?php echo $product->product_name ?>" href="<?php echo $product->link.$ItemidStr?>">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false);
?>

</a>
???
???
???

</div>