Find Jobs
Hire Freelancers

Joomla/Virtuemart get shopper group id and write if then

$30-250 USD

In Progress
Posted about 13 years ago

$30-250 USD

Paid on delivery
My site is running Joomla/Virtuemart and is using shopping groups to apply a %20 discount to users that are part of a certain group. I want to display a line below the price that reads "your 20% member discount has been applied" I've been able to locate the file and write the line but I'm unable to get the value of the current shoppers group. The line should only appear if they are members of the "Members" group. You can see the page here: [login to view URL] log in using guest guest Below is the code I'd like you to modify. You will need to replace the line $shoppergroup = 'Members'; with somethign that will actually get the value of the current shopper group from the database. There will probably also be some other minor changes. I would like to keep all of the new code located on this page only. Please let me know if there are more questions. I can give more details about the project once it has been accepted. Thanks Page code: <?php $user =& JFactory::getUser(); $userId = $user->get( 'id' ); $shoppergroup = 'Members'; ?> <div class="browse-page-block"> <div class="browse-page-block-inner"> <div class="home-featured-blockImageContainer"> <?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?> </div> <a href="<?php echo $product_flypage ?>" class="browse-product-title"><?php echo $product_name ?></a> <div class="home-featured-productPrice"> <?php echo $product_price ?> <?php echo $shopper_id; ?> <?php if ($shoppergroup == 'Members') { echo '<div style="font-size:10px; color:#F00;">your 20% member discount has been applied</div>'; } ?> </div> <?php echo $product_s_desc ?> <a href="<?php echo $product_flypage ?>"> <?php echo $product_details ?></a> <?php echo $form_addtocart ?><br /> </div> </div>
Project ID: 1007282

About the project

8 proposals
Remote project
Active 13 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Please read PM
$30 USD in 0 day
5.0 (11 reviews)
4.5
4.5
8 freelancers are bidding on average $76 USD for this job
User Avatar
PL check PMB
$80 USD in 1 day
4.9 (173 reviews)
7.4
7.4
User Avatar
Please check your inbox. Thanks
$80 USD in 1 day
5.0 (146 reviews)
7.1
7.1
User Avatar
Joomla Guru here!
$70 USD in 1 day
5.0 (50 reviews)
5.8
5.8
User Avatar
Ready to start!!
$60 USD in 2 days
5.0 (27 reviews)
5.2
5.2
User Avatar
hi, Let me do it for you! Thanks
$100 USD in 3 days
5.0 (6 reviews)
3.9
3.9
User Avatar
Hi, I am ready to start.
$120 USD in 3 days
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
Columbus, United States
5.0
366
Payment method verified
Member since Dec 21, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.