Jump to content

ank

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by ank

  1. Solved, It was the image itself, with another image everything works well.
  2. Hi i'am trying to resize a image from a child page who has his own template: on the home page i render all the child pages who have there own php template: foreach($page->children() as $section){ echo $section->render(); }; On the child page the php contains: $image = $page->image; $thumb = $image->size(300, 150); echo <img src='$thumb->url'>; the $thumb is not generated and i get a error: "Look out… Fatal Error: Uncaught Error: Call to a member function size() on null in site/templates/welcome.php:23" "welcome.php" is a child template. when i use : echo <img src='$page->image->url'>; it display the image.
  3. Is there a way to change the order of the products in the webshop. Thanks, Ank
  4. Sorry for the late response, but are learning from the examples. I am also trying to make a sidecart with this examples but cannot refresh the cart when clicking on "add to cart" button. I can update "$padloper->cart->getNumberOfTitles()" without page reload, but how to do it with a complete render of the cart ? Is there a place where i can find all functions of padloper like the total quantity of items in the cart (not quantity of products in cart) ? Thanks
  5. I tried, but it didn't worked (i am a frontend designer and know only html and the basics of php). Is it possible to post a simple example of a "add" button with no page reload ? Thanks
  6. Hello, when i add or update the cart, the page reloads to the overview grid/productpage (although the cart is updated), even when i add a product from a single product page. I use the example code: // get the $cartRender class $cartRender = $padloper->cartRender; // get the product whose add to cart button you want to be rendered // @note: it is assumed you already retrieved $product as per the example linked to above // render the add product to cart form $content = $cartRender->addToCart($product); $out .= $content; Is there a way to update the cart without reloading the page, only add or update the cart.
  7. i added the coordinates manually and now i get the map but Is it possible to change the colors of the map
  8. i installed the module, but i'm not able to get it working, i get the error "Error geocoding address" in the backend and a blank map ? What is missing/wrong ?
  9. Yes this solved my problem, Thanks @Autofahrn!
  10. When i try to move a existing website back to local development on VHX (VirtualHostX) i get a error message: Couldn't find "config.php" in /var/www/webank.vhx.cloud/site/config.php. the path isn't correct, "/var/www" does not apply here, can i change this ?
  11. You have to enable the Analytics API in the Google console
  12. I have the same problem with Mamp. Has someone already a solution to make it work with mamp ?
  13. Hi everybody, i am looking for a way to "mark" only one image in a imagesfield with multiple images, so i can request it on the homepage. I am making a collection of pages with images and on the home page i want to display one image out of every childpage (not the first image of every child) "I have been thinking on a switch next to the images so that i can "mark" the image, only one image in the imagesfield can be "marked" Any ideas how to archive this ?
  14. ank

    video upload

    I check this out, seems very suitable ! Thanks
  15. ank

    video upload

    @maxf5 and @adrian thank you FieldtypeVideo seems the easiest way, but i want to "autoplay" and "loop" the movie, so i think the "file" field option is the most suitable. Ank
  16. Hello I am looking to use html5 video, Is there a way to upload video files (mp4) in processwire ? Thanks Ank
  17. ank

    WireMailSmtp

    Thanks @horst, i knew it was possible in the backend, but i was wondering if it was simple to do it dynamicly.
  18. ank

    WireMailSmtp

    Is there a way to set the reply address ? ->reply("xxx@xxx.xx") ?
  19. @gebeer thank you, i try this
  20. I'm seriously struggling with a form is it possible to redirect to a page after send, and still use the submitted fields. what i want by example on the redirect page is: IF answers on question1 = "yes" then echo "You answer was YES"; and this for several fields Regards
  21. Thanks @Victor this works, but how do i echo a value of a "Select Options Fieldtype" ? https://processwire.com/api/modules/select-options-fieldtype/ i tried this, but it doesn't work $input->post('field_optionselect->title')
  22. Hello, is it possible to "echo" the values of the fields that just were submited on succes ? Thanks.
  23. I'm thinking of buying FormBuider, but first i want to know if i can use it for my needs. I checked the features of FormBuilder and found these: Send an auto-responder Conditionally email form submission to different people based on field values Display a success message, redirect to another URL or pull text from another page to display after form submission but i want to know, if its possible combine these to: redirect to a page that displays content based on (different) fields values just submitted from the form? or auto-respond a email based on the field values. example: if $formfield1="elephant" -> echo "your choice was an animal" if $formfield2="blue" -> echo "you selected a blue elephant" ... Thanks
  24. The Google api console is changed, in follow the installation instructions, but because some things are changed is there probably a setting i in the API console i missed. The Analytics API is activated in the API console. In the module in processwire i can autenticate, but see only older projects i made in the api console, not the new just activated project.
  25. a need 2 different forms, how can i exclude a field in one form ? i want to render a second form without the field "message", while i need this field in the first form.
×
×
  • Create New...