close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Rules Repeater

Thread began 7/26/2011 10:20 am by Cologne | Last modified 4/09/2012 11:59 am by Jason Byrnes | 2586 views | 10 replies |

Cologne

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Cologne

thanks lot! thats exactly what i thought it is. but the code in the wizzard looks a little bit diffrent :-)
cheers,
denis

Sign in to reply to this post

Cologne

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Cologne

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Cologne

hmmm,
so, then why is there this repeater? this is strange.
whats the reason i should use the rules repeater?
cheers,
denis

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Cologne

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

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...