fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: VM Product Import not show image

VM Product Import not show image 3 years 11 months ago #5753

Very good ! Now it worked for me. Thanks for the best free support !
I want to ask more question :
- My product has 2 price but plugin only show 1 price
- How to translate "Add to cart" to "Đặt hàng" ?

Many thanks !
The administrator has disabled public write access.

VM Product Import not show image 3 years 11 months ago #5760

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4490
  • Thank you received: 647
  • Karma: 116
Hello,

I am looking into multiple pricing options to see how it can work.

About the Text for the button. You can add an override for the language variable
PLG_SYSTEM_VMIMPORT_ADD_TO_CART

and that should do the job for you.

More on Language overrides here: docs.joomla.org/J3.x:Language_Overrides_in_Joomla
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

VM Product Import not show image 3 years 11 months ago #5771

  • fcdigital
  • fcdigital's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
Thanks a lot for your help, it is working now!

A couple of questions;

How can I add a class for image, for example class="img-fluid" for responsive

<?php echo $list->product_thumb_image; ?> How can I add class?


Similar to prevoious, how can I add a calss for button?

<div class="add_card_btn_container">
<?php echo $list->addtocart_button; ?> How can I add class="btn-yeoow" ?
</div>


Best regards!
The administrator has disabled public write access.

VM Product Import not show image 3 years 11 months ago #5772

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4490
  • Thank you received: 647
  • Karma: 116
In file

/plugins/system/vmimport/vmimport.php
around line 252
if($showProductImage && (count($product->images) > 0))
		{
	 		$list->product_thumb_image = $product->images[0]->displayMediaFull('class="medium-image" title="'.$product->product_name.'" ',true,'class="vm_modal"');
		}

You can add the class next to class="medium-image".

in the same file around line 284 you can see the code:
$list->addtocart_button = '<div class="addtocart-button btn btn-default"><a class="addtocart-button" href="'.$list->addtocart_link.'">'.$list->addtocart.'</a></div>';

and you can add the class accordingly in the div or in the a tag.
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: chandandeep
Time to create page: 0.701 seconds
Cron Job Starts