make popup page have submit and attribute buttons.

Miscellaneous Actinic / SellerDeck patches and anything not covered above.
Post Reply
Hkanaris

make popup page have submit and attribute buttons.

Post by Hkanaris »

Does the V6-popupdemo.txt work with version 7, or is there one specific for V7?
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Post by norman »

It should work with V7. However there's a new discount related NETQUOTEVAR in the V7 Product Templates so it may be a good idea to replace ( in AddToCart_ExtendedInfo.html created from the ReadMe ) the line:

<b>NETQUOTEVAR:PRODUCTPRICE</b>

with:

<b>NETQUOTEVAR:PRODUCTPRICE</b><br>
<span class="actxsmall">NETQUOTEVAR:DISCOUNTINFO </span>

and that's the extra V7 NETQUOTEVAR now in place.

Norman

PS I've now added a V7 specific ReadMe to http://www.drillpine.biz/actinicstuff/
Guest

Post by Guest »

Hi
Does add to cart button now work in pop ups
for customers logging in for discounts. ?

I'd love to use this feature, if it did.
Same goes for the upsell.

B
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Post by norman »

You can but it's somewhat kludgy.

Code: Select all

Using Popup with Add to Cart on Business pages.

The current version of Quantity on Product page doesn't show the price for logged in customers.

However the following patch will (sort of) automate this.

In Actinic / Advanced / Custom Properties, create two new properties called:-

SECTIONBLOB 
SHOWSID


In Design / Options / Site Defaults / Properties, click the "+" and select SHOWSID.
Set it value to 1, Uncheck "Searchable" and check "use as CUSTOMVAR".


Edit Act_ProductBody.html and look for the line

NETQUOTEVAR:BOTTOMSECTIONSEPARATOR

Insert the following code immediately above it:-

<script language="JavaScript">
<!-- Show Section ID 
function showsid(){ // look through all forms 'till one containing field SID
 {
 var tf = -1;
 var df = document.forms;
 var i = df.length - 1;
 for ( var j = 0; j <= i; j++)
  {
  var k = df[j].length - 1; 
  for ( var l = 0; l <= k; l++) 
   {
   if ( (df[j].elements[l].name == ('SID')) && (tf == -1)) 
     {
     document.write('<br><b>SID: ' + df[j].elements[l].value + '</b><br>');
     tf = j;
     break;
     }
   }
  }
 if ( tf < 0 ) document.write('<br><b>SID not found</b><br>');
 }
}
if ( 'CUSTOMVAR:SHOWSID' ) showsid();
//-->
</script>


This will now display the Section ID at the bottom of every product page.
Now to enable the correct display of customer prices we need some additional code
in the Product template.

Edit your Popup with Add to Cart Product Templates (AddToCart_ExtendedInfo.html).

Look for the line:-

<INPUT TYPE=HIDDEN NAME="SID" VALUE="">

Immediately above this insert the line:-

<Actinic:SECTION BLOB="A000CUSTOMVAR:SECTIONBLOB.cat"/>


That's all patching done.

Now preview your site (V7's dynamic preview will do) and at the bottom of every 
product page you should see something like:-
(if using XP-SP2 you may need to allow the display of active content)

SID: 2

Now for each page in the preview go the the Section Tree in Actinic and under 
Properties select SECTIONBLOB and set it value to e.g. 2  
Uncheck "Searchable" and check "use as CUSTOMVAR".

Repeat for every section in your catalog.

You can turn off the display of "SID: n" on every page by going to Design / Options / Site Defaults / Properties
and setting SHOWSID to 0.  
Likewise if you add several new sections then just temporarily set SHOWSID to 1 to see what's new.
Norman
Post Reply