Jump to content

Macrura

PW-Moderators
  • Posts

    2,756
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. @kongondo - sorry i wasn't super coherent: basically if you use this module with the default theme, it's fine because then your custom page appears in the top level menu. But if you use this module on the latest stable version, you have to create a custom admin page as well as a child page of that to store the template reference; And then if you use one of the admin templates with dropdowns in the admin, there is a child menu item which is useless because it will try to render the page in the admin template, which of course has no header/footer etc.. would be confusing for the client to see the parent and the child in the dropdown. hope i'm making more sense, i guess i could post screenshots to make it more clear... so the question would be can we make the child page unpublished or hidden, without throwing an error; this would solve the issue of the child menu item display.
  2. i tried Pete's code but it wasn't working; i made some changes based on seeing similar things on other modules, so here is a version that is working for me on latest stable: <?php class BuildUrl extends WireData implements Module { /** * Basic information about module */ public static function getModuleInfo() { return array( 'title' => 'Build URL', 'summary' => 'Builds a URL on page save based on specific fields.', 'href' => '', 'version' => 001, 'permanent' => false, 'autoload' => true, 'singular' => true, ); } /** * Initialize the module and setup hooks */ public function init() { $this->pages->addHookAfter('saveReady', $this, 'buildUrl'); } /** * * @param HookEvent $event */ public function buildUrl($event) { // Accesses the $page object $page = $event->arguments[0]; if($page->template != 'product-child') return; $page->name = $page->title; $this->message("slug changed to " . $page->name); } }
  3. I'm trying to use this theme with one of the admin templates that has dropdowns in the top menu and it displays the child page there which is not necessary; I tried making the child page hidden but that doesn't currently work; Just wondering if there is a workaround for those of us using this module, but where we can't have the top level menu item show a dropdown ... hope you get what i mean...
  4. @Nico - This looks really great! I've been trying to figure out a way to incorporate some email sending features into a site i'm building - i wonder if this module could be a starting point; How hard would it be to add a "send on date" on a newsletter and then have a cron job running to send at that time... -marc
  5. Hi Vineet - I read up a bit on the XML datafeed that FoxyCart provides, and that feed is what is read/parsed to decrement the inventory in something like the ModX plugin that is related to FoxyCart inventory; you should be able to easily hire someone to adapt that for processwire, and then you would be able to automatically remove sold seats http://modx.com/extras/package/foxycartinventory i guess the main snafu, again, is how to you prevent 2 users from both purchasing the same seats? You might have to use session variables, for example maybe when someone adds seats to their shopping cart, the page redirects to a processwire template that can run a script that would place the seats in that person's cart on 'hold' (and prevent them from being added to another users cart), so you would have to have 3 status types for each seat, SOLD, AVAILABLE and HOLD; then after the person checks out, your XML datafeed parser would check the sold seats against the ones on hold and then change their status to SOLD; you would also have to have it so that the cart expires in some short time frame, otherwise what happens if someone adds seats to their cart, but never checks out - i'm not sure what the default cart expiration is for FoxyCart. The bad news about OvationTix is that it is a complete system, and already does all of the things you have spent your time making, like it has it's own seating charts, seat selector, and backend management of shows, showtimes, etc.. So i don't think you would really want to use it, unless you need something full featured and needed it really fast; With Ovation, one of the other issues is that you can't for example make your own seating chart – the OT admins have to make that for you... (i think you explain to them the seating layout of the space and they configure that from their end..) My recommendation would be to see what you're clients budget is for the shopping cart component and the payment processing, and if they can afford it, then go with Foxycart; maybe search the FC forum for info on unique items and how to prevent multiple users purchasing, as well as if anyone else has done theater or ticketing.. Edit: i gave this more thought, and came up with the idea of keeping the add to cart and all of the logic for your site within processwire, for example using apesia's shopping cart module. Then you could control more elements and style to the cart and any also execute any custom processing you would need within processwire; all you would have to do is to make some changes to the module to let the last step bring the user to the foxycart checkout. For example you could wrap the whole cart view in a form element and use the foxycart tags to achieve adding all of the products from the 'processwire cart' to the 'foxycart cart' and redirect to the checkout; Foxycart makes it easy to add multiple items to the cart at once.. <form action="http://YOURDOMAIN.foxycart.com/cart" class="foxycart" method="post"> <input type="hidden" name="name" value="Les Miserables" /> <input type="hidden" name="theater" value="Imperial Theater" /> <input type="hidden" name="datetime" value="06-05-2013 8:00PM" /> <input type="hidden" name="seatNo" value="Q13" /> <input type="hidden" name="2:name" value="Les Miserables" /> <input type="hidden" name="2:theater" value="Imperial Theater" /> <input type="hidden" name="2:datetime" value="06-05-2013 8:00PM" /> <input type="hidden" name="2:seatNo" value="Q14" /> <input type="hidden" name="cart" value="checkout" /> <input type="submit" value="Checkout" /> </form>
  6. Hi Vineet - i guess my main confusion would be about the seats - do users purchase a specific seat, can they select it, and if so, how do you prevent 2 users from selecting the same seat? As far as Foxycart goes, the pricing for the service itself is $15 per month, but depending on what sort of payment processor you use, there might be additional fees from that, for example, PayPal Payments Pro i think costs around $30 per month, and that's probably one of the cheaper payment processors they support. If you want a much simpler and less expensive option, jCart might work well, since it quickly and easily plugs into any site and supports regular PayPal payments; again the main caveat is how to you have interaction with PayPal and Processwire if you are trying to automate the ticket sales... The last site i did that involved theater ticketing used OvationTix, and as far as I know it worked well. I can't say i like the ovationtix system that much – while it is really powerful, the whole thing seems a bit antiquated; You might want to take a look at that anyway, i think it might give you some ideas, they have been around for a while and their system is really well proven as far as managing large theaters and productions. One of the key things it does is to allow users to pick their seats, it updates the chart based on what seats are sold, and also allows you to process point-of-sale transactions at the event... -marc
  7. Hi Vineet - also you should be aware that foxycart is free to development, so you can just setup an account now and try it out and see if it will work. You don't pay until you want it to actually be able to run real transactions; The main problem i see with your setup is how do you remove sold seats; assuming you'll have to read the json response and then run a script to remove those seats from inventory; Some of the more advanced ticketing systems put a seat hold on seats as soon as they are added to the cart (in case 2 users try to add the same seats at the same time)..something like that might be necessary if you're selling actual seats; if you're doing GA, then this would be so much easier...
  8. Hi Vineet - i recently did a site with FC so i might be able to provide some insights; since you can pass variables to the cart, all you would need to do is to pass the seat # as a variable to the cart and then users could check out; You can make custom receipt pages and that page would similarly be able to show the seat #s. You wouldn't need to make real tickets, the receipt could be the ticket. But if you needed to generate real PDF tickets say with QR codes or something like that, you would have to learn the foxycart API and then get the sales data back to PW to process the PDF generator, as well as remove sold inventory from stock. this might be a good thing to look at: http://wiki.foxycart.com/integration/modx/inventory
  9. wow that's great. I'll try to help out when i get more time. I was trying to turn this one into a plugin: http://tympanus.net/codrops/2012/12/04/responsive-touch-friendly-audio-player/ it's really nice and html5, but the problem is that html5 audio isn't quite there yet... so then i ended up using soundmanager2 which is super reliable (and in mass use now on sites like soundcloud) – it's cross platform and does hybrid html5 and flash; Since i'm doing mostly responsive design, doesn't make so much sense for me to do flash only; but i'll look at this module and see if it can be modded for a different player; one reason why i didn't bother making a module is because it's easy to setup the template to output the desired markup for any given player, but then you also have to remember to include all the scripts and stylesheets and when applicable the flash objects etc,, so i can see a module being a good thing to house everything, and make it easier to re-use in different sites. it would be good to eventually have audio modules for Soundmanager2, jPlayer, and maybe mediaelement.js; the latter 2 support video;
  10. Hi 3fingers, Here is the code that processes the form: https://gist.github.com/outflux3/5690429 here is the form itself: https://gist.github.com/outflux3/5690423 i didn't post the form results, but that's just a table that shows the results; hopefully the processor and form code will help! -marc
  11. i think as PW grows in user base, there might be more developers wanting to do ecommerce; perhaps there should be a forum/subforum where we could consolidate all of the ecommerce-related topics.
  12. +1 for more info about shopify integration... i have a new ecommerce site that has to go into production, and was considering PW+FoxyCart; I would be interested in the pros/cons re PW+shopify vs other systems...; i guess it must be mostly features – since foxycart can handle everything with respect to the checkout process, i would wonder what advantage Shopify provides. It costs a lot more as well.
  13. @vineonardo - thanks for making this... it will be good to have this on an ereader and be able to study it sometimes.
  14. Hi Luis, thanks - here are the screenshots:
  15. Macrura

    Minify

    Just wanted to post a problem i had with Minify and the fix, in case anyone else runs into this: Problem: If you have an already minified css file (like for example a boostrap.min.css) as one of the files you are including in your minify concatenation string, the files with the string 'min' somewhere in the filename won't get processed, and consequently the URLs within the CSS files will not be correct; If this happens you'll see a recursive loop in your console, as the network requests for something like an image start to initiate a new minify process and this will create about 20-30 additional network requests that keep getting longer and longer.. sort of like this: builder/ builder/builder/ builder/builder/builder builder/builder/builder/builder/ builder/builder/builder/builder/builder/ and so on and so on... the fix is to set the behavior to minify all files, (or to use an unminified version of the css which is easier and would survive updates to the module); In case you don't want to or can't change the css files you are using, you can change this setting in the Minify/min/config.php file as follows: /** * By default, Minify will not minify files with names containing .min or -min * before the extension. E.g. myFile.min.js will not be processed by JSMin * * To minify all files, set this option to null. You could also specify your * own pattern that is matched against the filename. */ //$min_serveOptions['minApp']['noMinPattern'] = '@[-\\.]min\\.(?:js|css)$@i'; $min_serveOptions['minApp']['noMinPattern'] = '';
  16. Macrura

    Minify

    @Fourjays, can't see anything wrong with your code; maybe it is a server issue - there are some settings in the minify config file that might help.
  17. @mathew - thanks for looking; the foxycart for this site was very simple/easy and flexible to implement; i have no complaints overall except that i wish i could do validation easier on the add to cart buttons; but i'll probably get that sorted soon. the FC people are always helpful and polite; the system runs perfectly smooth as far as i can tell so far. It's a little tricky to integrate the checkout page into your site; since they host the checkout pages on their servers, they have to cache your 'checkout' template, which can be problematic if you have a complicated design (it didn't seem to like bootstrap); i wasn't able to get that working this time around, so i'm using the default checkout, which is also fine; maybe not as elegant as having the checkout look like it's part of the same site. ecommerce is definitely not my 'thing' so foxycart will probably be my 'go-to' solution, since it sort of just plugs in and works...
  18. btw -the client loves pw and appreciates the community so is offering 20% discount, using coupon code 'processwire', until June 20.
  19. @wishbone what about setting the template to not use trailing slash
  20. Hi Ovi, i also came across this; http://www.myjqueryplugins.com/jquery-plugin/jrating there is also a rating implementation within Zoo, so perhaps that could be looked at to see how it is done.. http://www.yootheme.com/zoo/downloads/download?layout=single i will probably need a similar functionality at some point down the road..
  21. @Jason & alanfluff -thanks for checking out the site, much appreciated. @NooseLadder - thanks for looking and yes, you're completely on point, the company is a very small business with limited resources...(basically a one-man operation) but there is a plan to photograph all of the products for 'V2'... For the veneers, there is a 'veneer gallery' for this version, and there will be a 'veneer picker' on the product pages for V2 which will be a popup lightbox that lets you see the veneers close up and select one, for which the selection will populate the veneer choice select box. also in the works would be validation for the veneer selection (to make sure a value is selected).... i haven't been able to figure out foxycart add-to-cart validation yet and am waiting on a reply to a post in the FC forum as to how i can use jquery.validate with FC, which would make things super easy.. -marc
  22. Hey Ryan - thanks for checking it out!
  23. you can look in the browser URL when you roll the mouse over the edit link for a page;
  24. thanks apesia, for bringing up this topic... hopefully by the time i get to V2, i'll come up with a way to deal with that; i'm using jquery validate for another form on the site, maybe there would be a way to integrate that with FB.. i also forgot to include in the first post a little about how that project evolved and ended up with PW.... it started a long time ago when we first tried to do the site in Joomla, using RedShop; that was basically a disaster; RedShop promised all of the 'features' you could want, but was rife with problems and almost nothing worked. I found myself on the RedShop forum almost every day reporting bugs, spelling errors in the component etc.; then Joomla 1.5 reach EOL, and we tried to upgrade, and that failed in many ways also (components, template etc..).. once i found processwire, the plan was to do a simple corporate brochure site, which would be like a product catalog, no ecommerce. During the work on that, i experimented with csv import on another PW site and discovered how to easily import the old website data, so that it took only a few hours to import the existing relational product database (MSaccess/Cold Fusion); And then i read about foxycart, so that became the solution for the parts store, since the existing site provider was discontinuing CC transactions on their servers, i guess they are not PCI compliant; Once we got that going, it was just a small step to enable add to cart buttons for the 'current' product line...
×
×
  • Create New...