Jump to content

Pablos

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by Pablos

  1. I'm now trying to add a country field to the checkout page. I've checked the 'Use Country field' and 'Is Country required' boxes on the Shopping Checkout module admin page, but they're not appearing in the rendered form. I tried turning off the City fields as a test and this worked fine.
  2. Brilliant! Thanks Soma, that makes life a lot easier.
  3. Aha. OK, if that's the way it's supposed to work, then I'll do that - I was just concerned that I'd made something go amiss behind the scenes. Thanks for the swift reply Apeisa.
  4. Hope this is the right place to post this... I've installed Shopping Cart and the Fixed Cost Shipping module, but renderCart() isn't outputting the code in the 'if ($shippingModule) {' block. The FixedCostShoppingModule isn't listed in the 'Modules Loaded' section of the debug tools either. I tried changing the references to the module name to 'ShippingFixedCostModule' but that didn't work. I have been able to pull the shipping price into a template using: $modules->get('ShoppingCart')->getTotalSumFromItems($items, $modules->get('ShippingFixedCost')) So that makes it seem like it is loaded, but I'd like the shipping added when I call renderCart.
  5. Actually it was even worse than multiple installs - the site had been copied in its entirety to a different directory. Thanks for your help. Sorry for the daft question.
  6. I've had a problem with a database which I was unable to repair. The affected site is only a few pages, so rather than spend ages trying to recover the tables, I've updated the content on my local server and exported that database. I've created a new database on the production server and imported the tables from the local version, but I can't get processwire to use the new database. I've changed the database entries in site/config.php, but it doesn't seem to have made any difference. In fact, as a test, I completely removed config.php and the site still loaded, so it doesn't seem to be doing anything. Does anyone have any ideas? Thanks, Paul
  7. Fantastic! Thanks arjen - that's sorted it. Not much excuse for that error! As it worked locally, I assumed I'd got the file names right.
  8. Hi Marc. Here's the code from both templates Semperian-home.php: <?php /** * Semperian home template * */ include("./semphome.inc"); Semphome.inc: <!DOCTYPE html> <html lang="en"> <head> <title>Semperian PPP Investment Partners | <?php echo $page->title; ?></title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <link href='http://fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css' /> <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>styles/semperian.css" /> <!--[if IE 7]> <link rel="stylesheet" href="<?php echo $config->urls->templates?>styles/ie7.css" type="text/css" media="screen, projection"/> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" href="<?php echo $config->urls->templates?>styles/ie8.css" type="text/css" media="screen, projection"/> <![endif]--> <!--[if gte IE 9]> <link rel="stylesheet" href="<?php echo $config->urls->templates?>styles/ie9.css" type="text/css" media="screen, projection"/> <![endif]--> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/jquery.cycle.lite.js"></script> </head> <body id ="homePage"> <div id="container"> <?php $nav = $modules->get("MarkupSimpleNavigation"); // load the module and have an instance kept in $nav var $options = array( 'levels' => true, 'show_root' => true, 'parent_class' => 'showSiblings' ); echo $nav->render($options); // render menu?> <div id="titlePanel"> <h1><?php echo $page->headline; ?></h1> </div><!-- END titlePanel --> <div id="content"> <div id="slideshow"> <?php foreach($page->slideshow_image_repeater as $simage) { echo "<img class='photo' src='{$simage->slideshow_image->size(970,0)->url}' alt='{$simage->slideshow_image->description}' />"; } ?> </div><!--END slideShow--> <div class="col1"></div><!-- END col1 --> <div id="textPanel"><?php echo $page->semp_MainText;?> </div><!-- END textPanel --> </div><!-- END content--> <div id="footer"> <p id="copyrightLine"><?php echo $page->semp_FooterCopyright; ?></p> <p id ="addressLine"><?php echo $page->semp_FooterRegisteredOffice; ?> </div><!-- END footer --> </div> <!-- END container --> <script> $(document).ready(function(){ $('#slideshow').cycle({ fx: 'fade', speed: 2500 }); }); </script> </body> </html>
  9. Hi. I've just come to Processwire as a cms newbie and so far the process has been very smooth. Now I want to upload everything to a subdomain of my own site to get the client's approval. I've tried moving all the files and the database to the server with no luck, so I then tried creating an installable copy of the website with the Site Profile Exporter module. I can log in, and the admin pages are fine, but when I try to view one of my own pages, I get a blank page. If I turn debugging on, I get the following error: Warning: include(./semphome.inc) [function.include]: failed to open stream: No such file or directory in /datasan/www/vhosts/primitive.co/subdomains/semperianppp/httpdocs/site/templates/Semperian-home.php on line 8 Warning: include(./semphome.inc) [function.include]: failed to open stream: No such file or directory in /datasan/www/vhosts/primitive.co/subdomains/semperianppp/httpdocs/site/templates/Semperian-home.php on line 8 Warning: include() [function.include]: Failed opening './semphome.inc' for inclusion (include_path='.:') in /datasan/www/vhosts/primitive.co/subdomains/semperianppp/httpdocs/site/templates/Semperian-home.php on line 8 This is no doubt something mind-numbingly obvious, but as a novice, it's got me stumped. I've turned off PHP safe mode by the way. Thanks for any help, Paul
×
×
  • Create New...