brandy
Members-
Posts
60 -
Joined
-
Last visited
Everything posted by brandy
-
Thanks a lot - I already checked the Snipcart-option. As there should be only three bookable products, and maybe no onlinepayment is necessary (my customer´s still checking) , I also thought about a simple form, which sends the important customer-data and the ordering process is completed - everything else should happen "offline". My only concern is the submission of credit card data or bank data - is this safe via FormBuilder? The site uses SSL. Would it be better to send the ordering-mail via SMTP then?
-
Another idea was to make a Prestashop-template with only the products, the booking module and the checkout. The products on the Processwire-site are linked to this page, where you can set your booking.
-
Hi! I have a customer, who wants to sell three bookable products on his website. We made the site some time ago in Processwire. First I thought we should switch to a shopsystem like Prestashop. But it would be complicated to adapt the design to the shop and it would be a very large solution for only three products. So we won´t touch the Processwire-page - my idea was an external checkout with booking - do somebody know something like this or has an idea where to get something like that? Thanks a lot!
-
And how would you center some lines of text in the div?
-
Wow, this is it. I read about clip-path and wasn´t sure, if this is a possibility for this problem! Thanks a lot!
-
Hi! I´m trying to make 2 centered divs with inclined sides and I got stucked. I have two divs (2a, 2b) which are inclined, positioned in a div (2) with the width of the two inclined divs. I put one div above, which cut everything at the width of the viewport. This is what I got - it´s working how I want it - The only thing is, that the second div (2) should center in the "main"-div (1), so that the inclination-line is in the middle and the divs (2a, 2b) cut off at the sides. <div class="1" style="width: 100%; overflow: hidden; text-align: center; "> <div class="2" style="width: 2000px;"> <div class="2a" style="transform: skew(20deg); height: 500px; background-color: red; width: 1000px; float: right;"> textytext </div> <div class="2b" style="transform: skew(20deg); height: 500px; background-color: blue; width: 1000px;"> textytext </div> </div> </div> I hope you understand! Thanks a lot!
-
Man, I just googled about a solution to bring a Processwire-site and a Prestashop together and found this module... I have a Prestashop-site, but my customer wants to start with a small website. The shop including ordering booking products should come later. As I want to save time, I just want to make one way. I can make a site with processwire and bring the ordering process to Prestashop later, or I rebuild my whole Prestashop once now an again later. Is this possible to link only the ordering process with this module?
- 7 replies
-
- prestashop
- products
-
(and 1 more)
Tagged with:
-
Thanks a lot, Jan Romero! I thought it would be a simple way, but I didn´t know that would be that simple! Thanks a lot!
-
Or the easier way: How do I check if the grandchild has at least a children? It should like something like this: if($page->$child->$child->hasChildren()) { ... } I know the syntax above is totally wrong - how do I can reproduce this right?
-
Can I change the tag $pages->count("has_parent=$child, template=tops, projekt_top_vermietet=1") so that the template is "tops" OR "tops_2"? Short: I want to count the grandchildren with two different templates. Thanks a lot!
-
Oh diogo you´re the man! Thanks a lot - I have tried already with has_parent, and I knew there is only a small mistake by me. Thanks a lot!
-
Although the template of the grandchildren and the field is given, the sum isn´t right: {$child->count('template=tops, projekt_top_vermietet=1')}
-
Can nobody help me in this case? Thanks a lot - I think, I just need a little hint!
-
Now I changed {$pages->count('template=tops')} to {$child->count('template=tops')} It works better, but the question, that I want count grandchildren-pages with the template "tops" is still open! Can you help me?
-
An id of a parent works, like this: parent_id=1021 But I do need it in between the loop dynamically? How do I get this done?
-
Ok, it works now with this code: <?php foreach($page->children() as $child) { echo "<div class='column column-block'> <div class='row'> <div class='large-12 small-12 columns'> <div style='border: 1px solid black; padding: 0px !important;'> <div style='width: 100%; background-image: url({$child->projekt_main_image->url}); background-size: cover; background-position:center center; height: 400px;'></div> <div style='text-align:center; background-color: black; color: white; padding: 10px 10px;'> <h4><strong><i>{$child->title}</i></strong></h4> </div> <div class='row' style='margin-top: 20px; margin-bottom: 20px;'> <div class='large-4 small-4 columns' style='padding: 10px; border-right: 1px solid black; text-align: center;'><div style='text-transform:uppercase;'>Tops gesamt</div><div style='font-size: 3.5rem;'><strong>{$pages->count('template=tops')}</strong></div></div> <div class='large-4 small-4 columns' style='padding: 10px; border-right: 1px solid black; text-align: center;'><div style='text-transform:uppercase;'>Tops zu mieten</div><div style='font-size: 3.5rem;'><strong>{$pages->count('template=tops, projekt_top_vermietet=0')}</strong></div></div> <div class='large-4 small-4 columns' style='padding: 10px; text-align: center;'><div style='text-transform:uppercase;'>Tops zu kaufen</div><div style='font-size: 3.5rem;'><strong>{$pages->count('template=tops, projekt_top_verkauft=0')}</strong></div></div> </div> <div class='row'> <div class='large-8 small-centered columns' style='text-align: center;'><a href='{$child->url}' class='button expanded rounded' style='background-color: black;'>Alle Informationen</a></div> </div> </div> </div> </div> </div>"; } ?> Now the fields are summed up, which are supposed to be summed up. This means he sums up the fields from all pages under "Projects". Home - Projects - - Project 1 - - - TOP 1 - - - TOP 2 - - - ... - - Project 2 - - - TOP 1 - - - TOP 2 - - - ... - - Project 3 - - - TOP 1 - - - TOP 2 - - - ... How can I differ between the different pages under "Projects" by its parent? I tried it with "has_parent=$child", as the template is set in "Projects"! Thanks a lot!
-
Hi! Thanks a lot - it´s working now. But not 100%. This is my code: <?php foreach($page->children() as $child) { echo "<div class='column column-block'> <div class='row'> <div class='large-12 small-12 columns'> <div style='border: 1px solid black; padding: 0px !important;'> <div style='width: 100%; background-image: url({$child->projekt_main_image->url}); background-size: cover; background-position:center center; height: 400px;'></div> <div style='text-align:center; background-color: black; color: white; padding: 10px 10px;'> <h4><strong><i>{$child->title}</i></strong></h4> </div> <div class='row' style='margin-top: 20px; margin-bottom: 20px;'> <div class='large-4 small-4 columns' style='padding: 10px; border-right: 1px solid black; text-align: center;'><div style='text-transform:uppercase;'>Tops gesamt</div><div style='font-size: 3.5rem;'><strong>{$child->count('template=tops')}</strong></div></div> <div class='large-4 small-4 columns' style='padding: 10px; border-right: 1px solid black; text-align: center;'><div style='text-transform:uppercase;'>Tops zu mieten</div><div style='font-size: 3.5rem;'><strong>{$child->count('template=tops, projekt_top_vermietet=0')}</strong></div></div> <div class='large-4 small-4 columns' style='padding: 10px; text-align: center;'><div style='text-transform:uppercase;'>Tops zu kaufen</div><div style='font-size: 3.5rem;'><strong>{$child->count('template=tops, projekt_top_verkauft=0')}</strong></div></div> </div> <div class='row'> <div class='large-8 small-centered columns' style='text-align: center;'><a href='{$child->url}' class='button expanded rounded' style='background-color: black;'>Alle Informationen</a></div> </div> </div> </div> </div> </div>"; } ?> $child->count('template=tops') works and the right number is shown, but {$child->count('template=tops, projekt_top_vermietet=0')} and {$child->count('template=tops, projekt_top_verkauft=0')} are showing the same number as the first count, although the fields 'projekt_top_vermietet' and 'projekt_top_verkauft' have different states in the different pages. Thanks a lot!
-
Thanks a lot. That looks very good, but I missed one thing - the field is on the grandchild respectively on the great-grandchild of the pages. The child is an detailed overview of numerous grandchildren, and the page itself shows all children, where I want to have the checked fields counted. Here the structure: -> page (should show a sum of the checked fields) -> -> child -> -> -> grandchild (contains field, which is checked or not) -> -> -> grandchild (contains field, which is checked or not) -> -> -> grandchild (contains field, which is checked or not) I already have a loop on the top page, to show the field of the child: <?php foreach($page->children() as $child) { Thanks!
-
Hi! I have different pages, where I can check an option via checkbox. Now I want to count the pages, where the checkbox is checked. How is this possible? Thanks a lot!
-
[SOLVED] Real estate site - project on start page
brandy replied to brandy's topic in General Support
Ok, I already found it - thanks a lot! It´s easier than I thought! -
[SOLVED] Real estate site - project on start page
brandy replied to brandy's topic in General Support
@psy: How do I filter out only some fields from the page, linked via the page reference field? Can I use the fields from the referenced page in the template of the current site? -
[SOLVED] Real estate site - project on start page
brandy replied to brandy's topic in General Support
Man, it´s always easier as it looks like... Thanks a lot - I have to see it from the page´s angle. Thanks a lot! It works now... If I´m ready I will show you my work. -
[SOLVED] Real estate site - project on start page
brandy replied to brandy's topic in General Support
Yeah, I have been going throug many pages, but I don´t understand how I get down to a field. I mean getting the properties of a page, like the image in the example above is clear and I do understand. But I´m not able to move it to a field. The direct way {$page->FIELDNAME->label} doesn´t work. So I tried a different way $fields->get("FIELDNAME") I guess you guys are laughing your heads off :-) I´m totally confused at what end I am, and where to look for the field and its content... -
[SOLVED] Real estate site - project on start page
brandy replied to brandy's topic in General Support
Hi again! Thanks a lot for your help. Now I have a very basic question: I have numerous fields for every detail of the project (size, rooms, etc.). Now I want to show the different fields on the site. The image is shown via: <?php if($page->site_main_image) echo "<img src='{$page->site_main_image->url}' alt='$image->description' />"; ?> How do I show a field? I tried with: <?php if($page->project_app_floor) echo "<td>{$pages->get("project_app_floor")}</td><td>{$pages->get("project_app_floor")}</td>"; ?> I don't really know, if I have to refer to the field directly or if I need the page. Thanks a lot! -
[SOLVED] Real estate site - project on start page
brandy replied to brandy's topic in General Support
Ok, very cool - thanks a lot! And how does it work, if I only want to have only some of the fields of the subpage? Do I need a new template? Thanks a lot!