Jump to content

NooseLadder

Members
  • Posts

    218
  • Joined

  • Last visited

Everything posted by NooseLadder

  1. Hi, Has anyone used card-based layouts with processwire, like Pinterest, drrrible etc? I'm looking for inspiration and a template to generate content. Rgds, Keith
  2. Another +1 for Cycle2. Easy to implement and customise.
  3. Unfortunately, this is almost impossible. Exactly
  4. Thanks both for the replies. Unfortunately the client has now changed his mind but I will keep this for the future. I'm sure I will need it at some point.
  5. Hi, I'm using this module and am pleased with it. My client has asked if we can display a child page also as a level 1 page in the menu. The only way I can quickly think of doing this is to duplicate the child page at level 1. Has anyone got any better ideas? PAGE TREE MENU
  6. Hi, yes I should explain myself better. I am getting images of different colours for the same product so that when the colour is selected the appropriate coloured image is displayed. $colours = $product->get("colours"); $finishes = $product->get("finish"); $initialImageUrl = $product->productImage->url; $colourImages = $product->get("images"); echo "<form action='./' method='post'> <select name='image' id='image' class='inputbox' size='1'> <option value='".$initialImageUrl."' selected='selected'> - Select Colour / Finish - </option>"; foreach ($colourImages as $colourImage) { $colourImageUrl = $colourImage->url; $colourText = $colourImage->description; echo "<option value='".$colourImageUrl."'>".$colourText."</option>"; } echo "</select> </form>"; This form is currently outside of the add to cart form. I want to be able to post the selection to the cart along with sc_price and qty. I will have to convert the selected image url to a colour name e.g green = /site/assets/files/1281/productgreen.png. I can obviously include the selector within the add to cart form but the shoppingCart.module will need some changes to make sure the selection is posted to the cart along with the product title. This is the part I am not sure how to do. I hope that helps? Initial colour of product when page is loaded: Selected colour e.g. green: So when the product is added to the cart the colour is also displayed:
  7. I'll start with some online tools to measure page speed: GTMetrix Pingdom Tools Google Page Speed Insights I generally test using all three as each one gives some different results and recommendations for improvement. The Google one also shows results for mobile loading and mobile user experience.
  8. I've only just seen your question. I have Apeisa's module installed on 2.5.2 and it works ok. The main reason I am here though is to ask a question probably @Apeisa or @Soma: On the product page where the add to cart button is included. As well as using the $qty and $product_id variables in the ShoppingCart.module, I want to add additional select dropdowns within the current form whose selections get posted when the add to cart button is submitted: $out = "<form method='post' action='$postUrl'>"; $out .= "<input type='hidden' value='{$product->id}' name='sc_product_id' />"; $out .= "Qty: <input type='number' name='sc_qty' value='1' min='0' />"; $out .= "<input type='submit' value='" . $this->_("Buy now") . "' />"; $out .= "</form>"; I simply need to know what other lines in the module would need to be updated and how if I add a simple: $out .="<select name='wtf' id='wtf'> <option value='' selected='selected'>-- select option --</option> <option value='one'>1</option> <option value='two'>2</option> <option value='three'>3</option> </select>";
  9. $categories are already unique in the page tree. It's the $categoryName that I want unique. I have tried $categories = $page->children; foreach ($categories as $category) { $categoryNames = $category->categories; $categoryNames = $categoryNames->unique(); foreach ($categoryNames as $categoryName) { echo $categoryName->title."<br />"; } } And this $categories = $page->children; foreach ($categories as $category) { $categoryNames = $category->categories; foreach ($categoryNames as $categoryName) { $categoryName = $categoryName->unique(); echo $categoryName->title."<br />"; } } But they don't work. This is the page tree: The field categories is a multi page select. Category List (where I want to list unique categories) Cat1 (has field categories containing 1 categories = fig) Cat2 (has field categories containing 4 categories = apple, orange, pear, banana) Cat3 (has field categories containing 8 categories = apple, orange, pear, banana, grape, kiwi, blackberry, passion)
  10. Hi, $categories = $page->children; foreach ($categories as $category) { $categoryNames = $category->categories; foreach ($categoryNames as $categoryName) { echo $categoryName->title."<br />"; } } This code gives output: apple orange pear banana grape kiwi blackberry passion fig apple orange pear banana I would like to only output unique values. I want to create only unique category links on the page regardless of how many child pages have duplicate categories. Can anyone point me in the right direction?
  11. Had the same problem as OP. I'd like to thank pwired for the solution and confirm that this solved the problem for me.
  12. I like this idea. It's ok searching the forum but sometimes you just can't find what you need, you know it out there, but where? So, a more direct/focussed search would be good (and hopefully a time saver as well)
  13. Hi, I'm building an site with shopping cart (using Apeisa's Module). I would like to implement a product builder/selector with multiple attributes and I would like to display the product as an image that is updated in real time as each selection is made. Something like here: armydogtags. co. uk/build-your-tags/template/military I have looked in the modules but I cannot find anything there. If there is something can someone point me in the right direction. Otherwise I will probably have to use jQuery plugin. How easy would it be to do this in a custom script/template? Has anyone got any recommendations please?
  14. @apeisa or anybody who can edit the module page This is the second time I have used the shopping cart module, first time in 2012 and the second time fallen into the trap of following the text titled 'Instructions' on the module page. There are some errors there. e.g Should be: The text under title 'Read Me' is an almost duplicate of the 'Instructions' but with some corrections. Suggest that the instructions section is removed and only the Read Me section left there. Also, suggest that you instruct to add reference to the product: 4. Add <?= $modules->get("ShoppingCart")->renderAddToCart($product); ?> Otherwise, thank you for this module it is very helpful. My next challenge is to integrate SagePay payment processor.
  15. I last used SagePay in early 2012, but only in its basic integration where you get taken to their website to make the payment. I must say that their docs have definitely improved since then, so fingers crossed.
  16. I am currently looking for a shopping cart solution for PW. For my needs I can't see why Apeisa's module would not work with a bit of tweaking. For me, the bigger hurdle would be integration with my Payment Gateway of choice, SagePay. They have four different methods of integration and I am looking to use what they call 'Server Inframe Integration'. This keeps the customer on your site whilst the payment is processed in the background through a secure https channel. The sagepay scripts are initiated by the user clicking the final 'Pay Now' button on your website after entering their order/shipping details. All payment transaction data is on the SagePay website. I have attached a doc that outline the process if anyone is interested. I intend to test this with Apeisa's module. My main question to you is Can anyone see why this wouldn't work? sagePayIntegration.doc
  17. Just received the latest voting update: Best Free PHP CMS Joomla - 64% Concrete5 - 22% ProcessWire - 15% Popularity vs best !!! Hopefully some more of our community can make a difference?
  18. Hi, I'm looking for some feedback please as to your favourite video embedder. If I can compile a shortlist from your suggestions I may then setup a poll. Please include reasons for your choice(s). I currently do not have a fav as I have not had to do much embedding but this is going to change soon. Thanks.
  19. I highly recommend this module. I have used it quite a bit and it makes redirecting a breeze
  20. And remember that Critics Choice website is Powered by Processwire.
  21. Unfortunately with your categorisation, Processwire was listed c.
×
×
  • Create New...