VaeML http://forum.vaeplatform.com/categories/vaeml/feed.rss Thu, 01 Nov 12 02:39:15 -0400 VaeML en-CA Previous orders items http://forum.vaeplatform.com/discussion/315/previous-orders-items Wed, 17 Oct 2012 01:35:25 -0400 brandonsavoy 315@/discussions
I would like to do something like this:

<v:store:previous_orders>
<v:collection path="items">
// cart item info here
</v:collection>
</v:store:previous_orders>

Is there something else I can do as a work around or am I just not doing something correct.

Thanks in advance,
Brandon
]]>
Using v:if total_items to determine no items http://forum.vaeplatform.com/discussion/312/using-vif-total_items-to-determine-no-items Mon, 20 Aug 2012 19:02:48 -0400 seb 312@/discussions
This works:
<v:if total_items="1"><li>One item</li></v:if>

But this does not:
<v:if total_items="0"><li>Zero items</li></v:if>

It would also be nice if you could use operators within total_items.
]]>
Targeting default or selected entry in a collection http://forum.vaeplatform.com/discussion/308/targeting-default-or-selected-entry-in-a-collection Thu, 09 Aug 2012 03:25:15 -0400 sbrekken 308@/discussions
Below is my current implementation, is there an easier way?

<v:if param="id">
<v:template filename="entry" />
</v:if>
<v:else>
<v:collection path="entries" limit="1">
<v:template filename="entry" />
</v:collection>
</v:else>
]]>
Dates in RSS Feeds http://forum.vaeplatform.com/discussion/159/dates-in-rss-feeds Thu, 29 Sep 2011 11:25:45 -0400 Scott 159@/discussions
http://docs.vaeplatform.com/v_rss]]>
v:collection with v:if and v:pagination http://forum.vaeplatform.com/discussion/310/vcollection-with-vif-and-vpagination Fri, 10 Aug 2012 12:33:31 -0400 adam_crvn 310@/discussions
iterates through 24 collection items

<v:collection path="items" id="itemCollection" paginate="24">

15 of those items make it through the v:if

<v:if path="filterResultsWithPHP(<v->)">
<v=title>
</v:if>
</v:collection>


pagination iterates by multiples of 24 when only 15 items are shown

<v:pagination id="itemCollection" />
]]>
Generating wrapped next/previous entry links http://forum.vaeplatform.com/discussion/297/generating-wrapped-nextprevious-entry-links Sat, 23 Jun 2012 02:47:58 -0400 sbrekken 297@/discussions
So far I'm able to generate the next and previous links but I'm struggling on how to link the next link of the last item to the first item in the collection.

<v:section path="prev()">
Previous: <v:a><v:text path="name" /></v:a>
</v:section>
<v:section path="next()">
Next: <v:a><v:text path="name" /></v:a>
</v:section>


Any ideas?]]>
Autogenerating permalinks with a date http://forum.vaeplatform.com/discussion/304/autogenerating-permalinks-with-a-date Mon, 23 Jul 2012 17:44:02 -0400 michael 304@/discussions
http://cl.ly/image/3A2i2E311D2i



]]>
v:store:tag formatting http://forum.vaeplatform.com/discussion/303/vstoretag-formatting Fri, 20 Jul 2012 10:05:33 -0400 adam_crvn 303@/discussions
<v:store:item:price number_format="2" />
]]>
Options structure http://forum.vaeplatform.com/discussion/12/options-structure Wed, 22 Sep 2010 15:18:58 -0400 michael 12@/discussions
Is this structure going to be ready soon or should I be pursuing other options for color/size combos for a store?]]>
passing the barcode field via an input element http://forum.vaeplatform.com/discussion/301/passing-the-barcode-field-via-an-input-element Fri, 13 Jul 2012 16:35:29 -0400 michael 301@/discussions <v:store:add_to_cart barcode="123456" ></v:store:add_to_cart>
I could do something like this:
<v:store:add_to_cart barcode_field="barcode_input_element" >
<input name="barcode_input_element" type="hidden" value="123456" />
</v:store:add_to_cart>


The problem that I am having is that I do not know what the barcode will be upon initial page load; It depends on what size option is chosen on the item page.

I will only know the barcode value right before the user has clicked 'add to cart']]>
Not seeing cart_id from within v:store:cart:items http://forum.vaeplatform.com/discussion/300/not-seeing-cart_id-from-within-vstorecartitems Fri, 13 Jul 2012 14:56:06 -0400 dmitrivassilev 300@/discussions
Am I doing something wrong? I've tried both %v:php and v= (using HAML below)

%v:store:cart:items
%v:php
return $context['cart_id'];
<v=cart_id>



Thanks!]]>
returning the last created Vae ID http://forum.vaeplatform.com/discussion/299/returning-the-last-created-vae-id Mon, 02 Jul 2012 16:24:13 -0400 michael 299@/discussions Using logos on order confirmation and invoices made through paypal checkout http://forum.vaeplatform.com/discussion/298/using-logos-on-order-confirmation-and-invoices-made-through-paypal-checkout Fri, 29 Jun 2012 07:53:50 -0400 seb 298@/discussions <v:store:paypal_checkout /> as you can with <v:store:checkout> ?
I am specifically wanting the option to pass a logo url which will then be placed on the standard packing slip and order confirmation/invoice.

]]>
finding all child products in a Nested Collection of categories http://forum.vaeplatform.com/discussion/290/finding-all-child-products-in-a-nested-collection-of-categories Fri, 20 Apr 2012 13:11:35 -0400 michael 290@/discussions
I have a nested collection of Categories. Some categories are three levels deep.

In a Shop category page, Is there a good way to list all products in the current category plus all products in it's child categories?


<v:collection path="categories/products"></v:collection>
]]>
Limiting page links for pagination http://forum.vaeplatform.com/discussion/286/limiting-page-links-for-pagination Fri, 06 Apr 2012 11:32:14 -0400 michael 286@/discussions
If I have 32 pages in a paginated collection, I want it to show something like this
http://cl.ly/2Z2t0N1H1g1l2a1v322H
]]>
Adding Coupon Code to Email http://forum.vaeplatform.com/discussion/183/adding-coupon-code-to-email Tue, 20 Dec 2011 12:56:24 -0500 zonetrap 183@/discussions Customize Invoice Packing Slip http://forum.vaeplatform.com/discussion/280/customize-invoice-packing-slip Fri, 17 Feb 2012 18:20:08 -0500 Scott 280@/discussions escaping a single quote in a predicate expression http://forum.vaeplatform.com/discussion/282/escaping-a-single-quote-in-a-predicate-expression Fri, 16 Mar 2012 16:15:38 -0400 michael 282@/discussions
The single quote breaks everything. I have been Googling for XPATH single quote escape, but haven't come up with much. The only thing that seems to work is using the concat() function which isn't available in Vae.

Has anyone come across this issue before?

This works fine:

<v:collection path="products[options/size='Women's']>


But then I would need to manually escape the single quote in the backend, which you just can't expect a client to do.

Any help would be much appreciated. Thanks!]]>
Vae doesn't like HTML5Boilerplate? http://forum.vaeplatform.com/discussion/141/vae-doesnt-like-html5boilerplate Sat, 13 Aug 2011 05:02:03 -0400 Travis 141@/discussions http://html5boilerplate.com

I believe a lot of the CSS doesn't validate because it uses a few hacks to maximize usability. I'm not sure if this is causing parsing errors with vae... but when I use v:asset, it's removing random parts from my CSS file.

For example, it's removing font-weight:bold from my headings, and it's removing some of my @font-face font-families (but not others).

It's very weird, I can only imagine it's because it's parsing the CSS sheet wrong because it's not 'valid' in the first place.]]>
Why has Verb changed so much? http://forum.vaeplatform.com/discussion/281/why-has-verb-changed-so-much Wed, 22 Feb 2012 02:03:38 -0500 greg 281@/discussions How to copy customer's billing address to shipping address? http://forum.vaeplatform.com/discussion/148/how-to-copy-customers-billing-address-to-shipping-address Mon, 29 Aug 2011 15:56:36 -0400 Kevin 148@/discussions
<a href="#" onclick="shipping_billing(); return false;">Copy From Billing Address</a>
<script type="text/javascript">
function shipping_billing() {
fields = new Array('name','company','address','address_2','city','state','state_txt','country','phone','zip');
for (var q in fields) {
document.getElementById('shipping_'+fields[q]).value = document.getElementById('billing_'+fields[q]).value;
}
jQuery("#shipping_country").trigger('change');
}
</script>
]]>
User managed site navigation http://forum.vaeplatform.com/discussion/147/user-managed-site-navigation Thu, 25 Aug 2011 15:20:17 -0400 sgauder 147@/discussions
Haven't seen any discussion about this or found anything in the documentation (admittedly, I haven't read every page yet). ]]>
New Release: Sections within other Sections, and Headers http://forum.vaeplatform.com/discussion/145/new-release-sections-within-other-sections-and-headers Tue, 23 Aug 2011 13:12:28 -0400 Kevin 145@/discussions
1. You can now put Sections within other Sections (or Collections). On the frontend, they work just like you expect in terms of paths.

2. You can now add subheaders to group the structures within each Section or Collection. You can do it by clicking on a structure on the Site tab and entering some text into the new spot for "Form Header". Should be pretty easy to figure it out.

Hope you guys like it! Let me know if you have any questions.

Kevin]]>
insert a Not Published record into a Collection using v:create http://forum.vaeplatform.com/discussion/136/insert-a-not-published-record-into-a-collection-using-vcreate Tue, 26 Jul 2011 14:01:48 -0400 michael 136@/discussions
Could the v:create tag utilize the Published field when creating a record? Something like:


<v:create path="club" Published="Not Published">
<p><v:text_area path="comment" /></p>
<p><input id="submit" type="submit" value="say" /></p>
</v:create>
]]>
using v:create to insert a date structure with time http://forum.vaeplatform.com/discussion/172/using-vcreate-to-insert-a-date-structure-with-time Thu, 15 Dec 2011 13:54:16 -0500 michael 172@/discussions

<v:create path="guestbook">
<v:hidden_field path="datetime_added" value="<v?= date('c'); ?>" />
</v:create>


either date('c') or date('r') will work.]]>
Using "__v:to" in a select element to over ride the formmail http://forum.vaeplatform.com/discussion/179/using-__vto-in-a-select-element-to-over-ride-the-formmail Mon, 19 Dec 2011 18:16:26 -0500 Gordon 179@/discussions
So Im trying to use "__v:to" to override v:formmail so it will send the message to the email address selected in the select box but it doesn't seem to want to work. As you can see below, I've named the select box "__v:to" and made the two overriding email addresses options. Any thoughts as to why this might not be working?

-Gordon



<v:formmail to="mydomain@me.com" redirect="/">
<v:select name="__v:to" options="mydomain@gmail.com, gordon@gmail.com" class="subject" />
Your Name: <v:text_field name="Name" />
Your Comments: <v:text_area name="Comments" />
<input type="submit" />
</v:formmail>

]]>
Oncomplete Attribute for Ajax Loading http://forum.vaeplatform.com/discussion/167/oncomplete-attribute-for-ajax-loading Tue, 06 Dec 2011 15:36:14 -0500 Scott 167@/discussions
I think it works for the v:a tag (http://docs.vaeplatform.com/v_a), but I can't get it working for v:create. e.g. This doesn't work for v:create:
oncomplete="alert('its done!');"]]>
barcodes http://forum.vaeplatform.com/discussion/171/barcodes Mon, 12 Dec 2011 17:16:35 -0500 michael 171@/discussions Is there a parameter for a tag which allows only one post to be displayed? http://forum.vaeplatform.com/discussion/162/is-there-a-parameter-for-a-tag-which-allows-only-one-post-to-be-displayed Fri, 28 Oct 2011 11:04:12 -0400 webstroke 162@/discussions
Does anyone know if this is possible, and if so, how?

Thanks,
Jamie]]>
CSS Media Queries and v:asset http://forum.vaeplatform.com/discussion/160/css-media-queries-and-vasset Fri, 30 Sep 2011 09:57:15 -0400 Scott 160@/discussions @media screen and (max-width: 380px) {
#some_element {
display: none;
}
}

And when I try to deliver this css file using v:asset, it turns into this:
@media screen and max-width 380px {
#some_element {
display: none;
}
}

I can set debug="true" in my v:asset tag to deliver the unmodified css, but ideally I would like to be able to deliver a single compressed css file.]]>