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

TOPIC: Reduce Image Size, Put $ before numbers

Reduce Image Size, Put $ before numbers 8 years 11 months ago #1954

Good afternoon,

I tried to look for this solution on the forum, but it looks like you have gone in and corrected it for the person.

I have a couple of this I would like done if possible-

1.I would like the image on the facebook post to be the thumbnail instead of full image.
2. Can I get the $ sign put before the numbers? and also all the number shown (so will show $139.90, not 139.9$)
3.Can I get the By Field (in grey at bottom of post, mine says By VM Products.....in the attached image) removed?

Many thanks.

This plugin is going to save me heaps of time, thanks heaps!
Attachments:
The administrator has disabled public write access.

Reduce Image Size, Put $ before numbers 8 years 11 months ago #1955

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Steven
#1: You can find and open file plugins/system/jo_vm_autopost_facebook/jo_vm_autopost_facebook.php and go to line 119 and changed

$path_image = $baseurl.$post["file_url"];


To

$file_thumb = $post["file_url_thumb"];           	 				
$thumb = trim(str_replace('(Default URL)', '', $file_thumb));
$path_image = $baseurl.$thumb; 					


#2:
Go to line 86 and changed
$price = ' (Price: '.round($costprice,2).' '.$currency->currency_symbol.')';
To
$price = ' (Price: '.$currency->currency_symbol.round($costprice,2).')';
#3: We will check it
Best regards
Bach Pham
Last Edit: 8 years 11 months ago by Super User.
The administrator has disabled public write access.
The following user(s) said Thank You: Steven Hessey

Reduce Image Size, Put $ before numbers 8 years 11 months ago #1968

Thanks BachPham,

That all worked great.

The only thing is the price is still showing $179.9 not $179.90? is there a way to make it show all the cents?

Also for the By field, it looks to be grabbing it from the Product Author in Virtuemart. Because I use VM Products CSV !ULTIMATE! Plugin to import my products they all have this listed. If you can't make your plugin not show that, I will ask the creator of VM Products CSV to see if he can make changes so his name isn't in the author field.
The administrator has disabled public write access.

Reduce Image Size, Put $ before numbers 8 years 11 months ago #1969

Hi again,

I have just had one of the ladies here ask about removing the price all together from the post?
is this possible?

Thanks,
The administrator has disabled public write access.

Reduce Image Size, Put $ before numbers 8 years 11 months ago #1971

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello
Yes. You can removing price in line 86 you can set
$price = '';
Best regards
Bach Pham
The administrator has disabled public write access.

Reduce Image Size, Put $ before numbers 8 years 7 months ago #2485

Nice day,
Code to adjust the image size in the new version does not work, can you please advise?

http://joomcore.com/forum/jo-vm-auto-facebook/419-reduce-image-size-put-before-numbers#1955

How can I add to the export product name, the name of the manufacturer?

Thank you for answer.
Roman
Last Edit: 8 years 7 months ago by Roman Kubišta.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.053 seconds