Jump to content

Morphosis

Members
  • Posts

    3
  • Joined

  • Last visited

Morphosis's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. Thank you wbmnfktr, Like this approach very much and you/re correct, its much more flexible. I'll post an update once I have it inplace. Just show your kind support and time has not gone to waste. Thank you again.
  2. OK. This has broken me a little. Lots going on with my family, so brain fog is kicking in ? I have a Events page with the performers a children. Events |- Performer Name |- Repeater (date, description) |- Repeater (date, description) |- Repeater (date, description) - Performer name |- Repeater (date, description) |- Repeater (date, description) I'm trying to show: March Repeater(date) - Performer name - Repeater(description) Repeater(date) - Performer name - Repeater(description) April Repeater(date) - Performer name - Repeater(description) Any help would be so welcomed. I have looked at this: But not getting anywhere. Thank you in advance. Cheers Mark
  3. Hello. Hope you can help. I created a repeater to populate and dropdown with in the admin so the client can add/edit product categories for their shop. It's all working as expected in Chrome but noticed when testing i'm echoing out $m->selectfromrepeater->repeaterProdCatName Safari is not outputting the category names like Chrome is. My brain is fried with this so I thought I would reach out. I'm guessing I may need to loop the selectfromrepeater and push the name? just odd that chromes is out putting them fine This is how i'm creating JSON feed: foreach ($activeProducts as $m) { $data[] = array( "id" => $m->id, "product_title" => $m->product_title, "product_description" => $m->product_description, "product_price" => $m->product_price, "product_orig_price" => $m->product_orig_price, "product_images" => array( "url" => $m->product_images->first()->url, ), "product_category_new" => $m->selectfromrepeater->repeaterProdCatName, "product_quantity" => $m->product_quantity, "product_active" => $m->product_active, ); echo $m->selectfromrepeater->repeaterProdCatName; // Testing purposes }; Then access it in the javascript like this: function getProducts() { showProducts(<?php echo wireEncodeJSON($data); ?>); } Any pointers would be greatly received :)
×
×
  • Create New...