Announcement

Collapse
No announcement yet.

Dynamic Pricing Font

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dynamic Pricing Font

    On a site I am developing I am using a mixture of standard pricing, and dynamic pricing.

    The standard pricing is fine, large enough and bold, however the Dynamic price is tiny and small, to the point that it is the smallest font on the page and looks like I am trying to hide the price changes when options are selected.

    So basically how do I increase the font size, and change to bold? I have been playing with "Dynamic Price Layout" to no avail.

    I have pasted my contents of Dynamic Price Layout below in case you can see a problem.

    Kind regards

    Jason




    HTML Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22UseDynamicPrices%22%20%2f%3e%20AND%20%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e" >
    		<div id="id<actinic:variable name="ProductID" />DynamicPrice" <actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20false%29%20OR%20%28%3cactinic%3avariable%20name%3d%22OverrideStaticPrice%22%20%2f%3e%20%3d%3d%20true%29" >style="display: none"</actinic:block>>		
    				<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20true%20AND%20%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Product%20Page%22%29" >
    					<actinic:variable name="DynamicPricePrefix" />&nbsp;&lt;price here&gt;
    				</actinic:block>
    				<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20false" >
    				<actinic:variable name="DynamicPricePrefix" />&nbsp;
    					<actinic:block PHP='true' SELECTABLE='false'>
    					if (!isset($g_bShowDynamicTaxInclusivePrice))
    						{
    						$g_bShowDynamicTaxInclusivePrice = false;
    						}
    					if (!isset($g_bShowDynamicTaxMessage))
    						{
    						$g_bShowDynamicTaxMessage = false;
    						}
    					if (!isset($g_bShowDynamicTaxExclusivePrice))
    						{
    						$g_bShowDynamicTaxExclusivePrice = false;
    						}
    					if ($g_bShowDynamicTaxInclusivePrice && !$g_bShowDynamicTaxExclusivePrice) 
    						{
    						echo '<span id="id<actinic:variable name="ProductID" />TaxIncPrice"></span>';
    						if ($g_bShowDynamicTaxMessage)
    							{
    							echo '<actinic:block if="%3cactinic%3avariable%20name%3d%22TaxName1%22%20%2f%3e%20%21%3d%20%22%22%20OR%20%3cactinic%3avariable%20name%3d%22TaxName2%22%20%2f%3e%20%21%3d%20%22%22" >	
    									<span id="id<actinic:variable name="ProductID" />VATMsg" class="actxxsmall">&nbsp;(Including <actinic:block if="TaxName1%20%21%3d%20%22%22" ><actinic:variable name="TaxName1"/> at <actinic:variable name="TaxRate1"/>%</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22TaxName1%22%20%2f%3e%20%21%3d%20%22%22%20AND%20%3cactinic%3avariable%20name%3d%22TaxName2%22%20%2f%3e%20%21%3d%20%22%22" > and </actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22TaxName2%22%20%2f%3e%20%21%3d%20%22%22" ><actinic:variable name="TaxName2"/> at <actinic:variable Name="TaxRate2"/>%</actinic:block>)
    									</span> 
    									</actinic:block>';
    							}
    						}
    					if (!$g_bShowDynamicTaxInclusivePrice && $g_bShowDynamicTaxExclusivePrice)
    						{
    						echo '<span id="id<actinic:variable name="ProductID" />TaxExcPrice"></span>
    								<actinic:block if="%3cactinic%3avariable%20name%3d%22TaxName1%22%20%2f%3e%20%21%3d%20%22%22%20OR%20%3cactinic%3avariable%20name%3d%22TaxName2%22%20%2f%3e%20%21%3d%20%22%22" >	
    									<span id="id<actinic:variable name="ProductID" />VATMsg" class="actxxsmall">&nbsp;(Excluding <actinic:block if="TaxName1%20%21%3d%20%22%22" ><actinic:variable name="TaxName1"/> at <actinic:variable name="TaxRate1"/>%</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22TaxName1%22%20%2f%3e%20%21%3d%20%22%22%20AND%20%3cactinic%3avariable%20name%3d%22TaxName2%22%20%2f%3e%20%21%3d%20%22%22" > and </actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22TaxName2%22%20%2f%3e%20%21%3d%20%22%22" ><actinic:variable name="TaxName2"/> at <actinic:variable Name="TaxRate2"/>%</actinic:block>)</span>
    								</actinic:block>';
    						}
    					if ($g_bShowDynamicTaxInclusivePrice && $g_bShowDynamicTaxExclusivePrice)
    						{
    						echo '<span id="id<actinic:variable name="ProductID" />TaxExcPrice"></span>
    							<actinic:block if="%3cactinic%3avariable%20name%3d%22TaxName1%22%20%2f%3e%20%21%3d%20%22%22%20OR%20%3cactinic%3avariable%20name%3d%22TaxName2%22%20%2f%3e%20%21%3d%20%22%22" >	
    								<span id="id<actinic:variable name="ProductID" />VATMsg" class="actxxsmall">
    									(<span id="id<actinic:variable name="ProductID" />TaxIncPrice"></span> Including <actinic:block if="TaxName1%20%21%3d%20%22%22" ><actinic:variable name="TaxName1"/> at <actinic:variable name="TaxRate1"/>%</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22TaxName1%22%20%2f%3e%20%21%3d%20%22%22%20AND%20%3cactinic%3avariable%20name%3d%22TaxName2%22%20%2f%3e%20%21%3d%20%22%22" > and </actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22TaxName2%22%20%2f%3e%20%21%3d%20%22%22" ><actinic:variable name="TaxName2"/> at <actinic:variable Name="TaxRate2"/>%</actinic:block>)
    								</span>
    								</actinic:block>';
    						}
    					unset($g_bShowDynamicTaxInclusivePrice);
    					unset($g_bShowDynamicTaxMessage);
    					unset($g_bShowDynamicTaxExclusivePrice);
    				</actinic:block>
    			</actinic:block>							
    		</div>
    	</actinic:block>
    Regards

    Jason

    Titan Jewellery (Swift Design)
    Zirconium Rings
    Damascus Steel Rings

    #2
    In the code above the classes for smaller text only surround the tax price in brackets, such as "including VAT at.." messages. Do you have a link where the page can be seen either by uploading in Test mode, or uploading a single page by right clicking and Publish current page?.
    Peblaco

    Comment


      #3
      Hi Louise,

      I have a test page here (link removed)

      Many thanks

      Jason
      Regards

      Jason

      Titan Jewellery (Swift Design)
      Zirconium Rings
      Damascus Steel Rings

      Comment


        #4
        You could increase the standard size or change the size around prices. In Dynamic Price layout row 2 you can add a default class on the end like: style="display: none"</actinic:block> class="actlarge"> The page loads the default price before Javascript loads the dynamic price, so it would appear small then change to large. You can make them the same by changing Standard Price layout too and add the same class around the price tag.
        Peblaco

        Comment


          #5
          Many thanks once again.

          Seems to be another example of not working out of the box.

          Kind regards

          Jason
          Regards

          Jason

          Titan Jewellery (Swift Design)
          Zirconium Rings
          Damascus Steel Rings

          Comment

          Working...
          X