Rules Repeater
Hi there,
I nned som e information what the server behavior RULES REPEATER is for.
Is it to show my, tax, shipping etc, if I declared it in my shopping cart?
Cheers
Denis
Hi there,
I nned som e information what the server behavior RULES REPEATER is for.
Is it to show my, tax, shipping etc, if I declared it in my shopping cart?
Cheers
Denis
the rules repeater behavior creates a repeat region that is controlled by a rule set in your eCart object such as discounts or shipping.
to see a good example of the rule repeater behavior in action, add a cart display manager to a page, on the third step of configuring the cart display, set the shipping, discounts, tax and calculations to show individually, this will use the rule repeater behaviar to show each rule that applies to the cart as an individual line.
thanks lot! thats exactly what i thought it is. but the code in the wizzard looks a little bit diffrent :-)
cheers,
denis
Hi Jason,
I created some rules, one for every possibility.
How can I display the rules name?
In the wizzard its:
<td class="eC_IndividualCharge"><?php echo $galleryShop->RuleLooperName("Discounts"); ?></td>
<td>-<?php echo WA_eCart_DisplayMoney($galleryShop, $galleryShop->RuleLooperValue("Discounts")); ?></td>
But how do I get theses things:
$galleryShop->RuleLooperName("Discounts")
$galleryShop->RuleLooperValue("Discounts"))
Where is the behavior for that?
I got the repeat region but no content :-(
Cheers,
Denis
I'm not really sure what you are asking.
the best way to create a cart display that shows the discounts individually is to use the cart display manager, on the third step of the cart display manager, select the option to show the discounts individually.
Hi Jason,
thats what I did. And now I want to creat the Cart on my own.
And I cant find any buttons to insert these code
$galleryShop->RuleLooperName("Discounts")
$galleryShop->RuleLooperValue("Discounts"))
This is created by the wizzard. But how can I do it on my own? I created the Rules Repeater Region, but there is nothing inside.
How do I get my discount names etc. manually without the wizzard.
Cheers
Denis
thats an advanced use case that requires creating the code manually. there are no bindings to generate that code for you, you need to create it manually.
hmmm,
so, then why is there this repeater? this is strange.
whats the reason i should use the rules repeater?
cheers,
denis
the rules repeater creates a loop through the type of rule you want to repeat.
to display the name and amount of each rule though, you need to add the code manually inside the loop.
and this is the standard PHP for getting theses information?
$galleryShop->RuleLooperName("Discounts")
$galleryShop->RuleLooperValue("Discounts")
this will work even if I dont use the wizzard?
Cheers
Denis
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.