-
Posts
233 -
Joined
-
Last visited
Posts posted by opalepatrick
-
-
I was following the examples given in Diogo's answer here - However, I am either making a mistake or not getting it.
$products = $pages->find("parent=/products/"); foreach ($products as $product) { //Database queries and while loops to give me the width, depth, height and seat_height variable values. They echo out fine. echo "<p><strong>The next dims are: " . $width . ", " . $depth . ", " . $height . (isset($sh)?", " . $sh:"") . "</strong></p><br />"; $product->of(false); $product->width = $width; $product->depth = $depth; $product->height = $height; if(isset($sh)){ $product->seat_height; } $product->save; //print_r($product); if(isset($sh)){ unset($sh); } }
The script completed without errors, but nothing appeared in the forms for the individual product pages in admin. However, the values do appear in the array if I print out the $product array, for example:
Array ( [title] => 111 Spindle Side Chair
=> 111 [width] => 490 [depth] => 530 [height] => 830 [seat_height] => 465 )
Bit confused. Any help appreciated.
-
Thanks a lot Joss, I thought it was a bit bizarre.
Of course, it would help if I didn't completely trash the styles.css without checking everything first. I changed it to a foundation 5 based version that I knocked up and then forgot
-
Using TinyMCE or CKEditor. Cant seem to find an option to float an image left or right. I can align but not float to wrap text or ad a margin? Am I missing something obvious?
-
Thanks Ryan, that was super quick!
-
Is this going to have to be rebuilt maybe? Beyond my skills at the moment
-
Thanks a lot Didjee, I have not come across this one before. I am messing around with it at the moment.
-
Just wondering if anyone knows of an alternative for a slide/carousel thingy for my homepage that has a pause on the last slide. I have used nivo-slider previously but it only does a stop on last slide.
Any ideas gratefully received
-
You are right diogo. I always get those two mixed up. So it is the default in sites-available that needs to be watched
-
I also thought I would add my 2 pence/cents worth to this thread.
If you are using a debian based system like ubuntu or mint then you might also look in the default setup in sites-enabled as it may be overriding the file you created for your site that carries the vhost info above. Changed it to the same setup.
I was at the tearing hair out stage when I came across that elsewhere.
- 1
Updating field values for products
in API & Templates
Posted
Thanks a bunch, Wanze. I love your image. Seems like you just casually knock off a quick answer one handed whilst relaxing
So the answer was. It's a mistake!!
Thanks once again and for the speed of response.