Announcement

Collapse
No announcement yet.

Undefined Variable: g_bShowDynamicTaxInclusivePrice

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

    Undefined Variable: g_bShowDynamicTaxInclusivePrice

    Has anyone come across this in Swift V2 Release?

    Code:
    Notice: Undefined Variable:
    g_bShowDynamicTaxInclusivePrice in main on line 6
    It randomly appears then will clear spontaneously after a few view changes or on offline preview:

    Click image for larger version

Name:	undefinedvariableii.jpg
Views:	149
Size:	119.9 KB
ID:	554693

    Thank you!
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    If this only happens on Preview and when an RRP is enabled it could be because layout Dynamic Price Layout (line 8) only defines $g_bShowDynamicTaxInclusivePrice within a NotPreviewMode BlockIf.

    However a little bit further down that layout in the RRP calculation (line 55) uses $g_bShowDynamicTaxInclusivePrice in both Preview and live modes. So this will be an attempt to use an undefined variable.

    Subsequent display of the price further down the page sets that variable so you should only see the problem on the first product you Preview.

    Not one to worry about as it won't happen on live pages.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      It can be fixed. Edit layout Dynamic Price Layout and look for the line:
      Code:
      	$rrp = <actinic:variable name="RRP" />;
      Above it add:
      Code:
      	if (!isset($g_bShowDynamicTaxInclusivePrice))
      		{						
      		$g_bShowDynamicTaxInclusivePrice = false;
      		}
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Thoroughly awesome - thank you so much Norman.
        Jonathan Chappell
        Website Designer
        SellerDeck Website Designer
        Actinic to SellerDeck upgrades
        Graphicz Limited - www.graphicz.co.uk

        Comment


          #5
          Many thanks as always, Norman. I have raised a bug report for this, ref MS_SMDEV-4581
          Bruce Townsend
          Ecommerce Product Manager
          Sellerdeck Ecommerce Solutions

          Comment

          Working...
          X