Author Topic: Virtuemart x Buy bottom  (Read 726 times)

mieciow

  • Beginner
  • *
  • Posts: 28
Virtuemart x Buy bottom
« on: July 01, 2011, 23:39:54 pm »
Hello everybody

I need a virtuemart shop where the client insists that the buy button (and the quantity box) appears only after logging into the system
How can I do this?

thanks
MiƩcio

zorkhh

  • Advanced
  • Jr. Member
  • *****
  • Posts: 245
    • vm-expert.com
Re: Virtuemart x Buy bottom
« Reply #1 on: July 02, 2011, 00:31:44 am »
Hello

depending on the theme settings and the selected browse- and flypage, you have to edit the activated themes-files and change the line where the addtocart form is loaded. For example:

if($_SESSION['auth']['user_id']) echo $addtocart;

This variable holds the user-id, when the user is logged in: $_SESSION['auth']['user_id']

Thomas
Virtuemart Professional Support at http://www.vm-expert.com

Visit the large Virtuemart Group on Joomla.org: http://people.joomla.org/groups/viewgroup/30-Virtuemart.html

mieciow

  • Beginner
  • *
  • Posts: 28
Re: Virtuemart x Buy bottom
« Reply #2 on: July 02, 2011, 01:23:36 am »
unfortunately I have no programming knowledge
use the default theme, use the  you mania in virtuemart template for the site
virtuemart version 1.1.4
could be more specific please?

thanks

VM_Fans

  • Jr. Member
  • **
  • Posts: 251
Re: Virtuemart x Buy bottom
« Reply #3 on: July 02, 2011, 04:04:26 am »

mieciow

  • Beginner
  • *
  • Posts: 28
Re: Virtuemart x Buy bottom
« Reply #4 on: July 02, 2011, 18:54:58 pm »
thanks