Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2015
    Location
    Canada
    Posts
    6
    Plugin Contributions
    0

    Default Show best price ... with Usercurrency plugin installed?

    I am trying to show the best price on the product page. I found some code from another topic to make this work , but it is not working with usercurrency. This is a plugin that will detect your IP country and change the currency. Im working with USD (default) and CAD.

    Here is what i did

    edit
    includes\modules\YOUR_TEMPLATE\product_listing.php
    find:
    PHP Code:
    case 'PRODUCT_LIST_PRICE'
            
    $lc_price zen_get_products_display_price($listing->fields['products_id']) . '<br />'
            
    $lc_align 'right'
            
    $lc_text =  $lc_price
    and replace with:

    PHP Code:
    //bof As low as price// 
            
    case 'PRODUCT_LIST_PRICE'
             
                
    $lc_price zen_get_products_discount_price_qty((int)$listing->fields['products_id'],20000); 
                
    $lc_price '$'.number_format($lc_price2); 
                
    $lc_align 'right'
                if ( 
    zen_get_products_discount_price_qty((int)$listing->fields['products_id'],20000) != zen_get_products_actual_price((int)$listing->fields['products_id'])){ 
                                    
    //Change the next line to your own text/formatting requirements 
                    
    $lc_text='<span style="color: gray; font-weight: normal;">Price as low as:<br />' $lc_price ''
                    }else{ 
                    
    $lc_text =  $lc_price.'<br />'
                    } 
    //eof As low as prise// 
    First picture is before any code changes , note price is shown in CAD (which is correct for my IP)
    Click image for larger version. 

Name:	test2.jpg 
Views:	114 
Size:	16.0 KB 
ID:	15945
    Second pciture is with the code change , but price is shown in USD (not right). I must be missing some coding for this to work with this plugin.
    Click image for larger version. 

Name:	test1.jpg 
Views:	98 
Size:	19.1 KB 
ID:	15944
    Last edited by bikespot; 10 Jan 2016 at 06:40 PM. Reason: fixed

  2. #2
    Join Date
    May 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Show best price ... with Usercurrency plugin installed?

    Quote Originally Posted by bikespot View Post
    I am trying to show the best price on the product page. I found some code from another topic to make this work
    Can you provide a link to that code you found?

 

 

Similar Threads

  1. Show attribute sale price with regular price
    By pooka in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 16 Dec 2012, 05:22 PM
  2. v151 Show discounted group price together with retail price
    By havneras in forum General Questions
    Replies: 1
    Last Post: 24 Sep 2012, 12:56 AM
  3. Does userCurrency work ok with 1.3.8/1.3.9?
    By Dunk in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 26 Aug 2010, 05:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR