Jump to content

glow

Members
  • Posts

    47
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

glow's Achievements

Member

Member (2/5)

0

Reputation

  1. Thank you for your post, i thought the same, can I pay you to modify that file as you have explained?
  2. And here is a screenshot showing the the item and price rows. i took this screen shot from a sample order notification email.
  3. I have this Shopping cart that allows for the creation of products with product sizes and so if a customer purchases a shirt which regular price is $10 but he/she chooses a large size which is marked @ $12 then of course the shopping cart then charges $12 - then the customer receives a purchase notification email defining the purchase of the $12 size large shirt, and thats all fine except that currently the notification email defines the shirt with $0.00 price in a row and in another row it defines the shirt size with the $12.00 price. So it basically defines the product twice, and i don't want it to do that. I want the product price and size to all be included in the same row. Attached is the .php file that needs the modification. I had a developer tell me that it could not be done. Can someone please have a look at this file and tell me if its true that what I want cannot be done! - all i want to do is merge those two rows together. I've attached the php that is responsible for writing the tables containing the purchased items. orderSaveAjax.php
  4. Hey thanks for your help, that worked out nicely. I hate joomla i'm just helping out a friend : )
  5. I simply copied that example code from the link you provided and add it to my php page.
  6. Adding "session_start()" to the top of the script gives errors also.
  7. I tried this but it didn't work: <?php date_default_timezone_set('America/Los_Angeles'); $script_tz = date_default_timezone_get(); if (strcmp($script_tz, ini_get('date.timezone'))){ echo 'Script timezone differs from ini-set timezone.'; } else { echo 'Script timezone and ini-set timezone match.'; } ?>
  8. Thank you for your links but this still goes over my head , I wish I understood more of it but I'm not there yet. So in my joomla.php it shows this code in line 103: ----------------------------------------------------- $now = date( 'Y-m-d H:i', time() ); DEFINE( '_CURRENT_SERVER_TIME', $now ); DEFINE( '_CURRENT_SERVER_TIME_FORMAT', '%Y-%m-%d %H:%M:%S' ); and this code in line 436: $now = date( 'Y-m-d H:i:s', time() ); $this->set( 'now', $now ); ---------------------------------------------------------- so what should go in their place? thanks you
  9. Hi I'm in need of help with some errors that the admin page of my cms is spitting out, I'm very new to php but I'm great understanding directions so any help that anyone can provide will be greatly appreciated. These are the errors being displayed: Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/mysite/public_html/includes/joomla.php on line 437 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/mysite/public_html/includes/joomla.php:437) in /home/mysite/public_html/includes/joomla.php on line 808 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mysite/public_html/includes/joomla.php:437) in /home/mysite/public_html/includes/joomla.php on line 808 I've attached the php file giving the errors, I hope someone can help me. Thanks in advance. Jude
  10. Thank you Adam for your help .
  11. As an alternative if there is no solution can we through php or CSS or javascript perhaps "exclude" the other elements inside the div from having their opacity affected? - is that possible?
  12. Hi, I just forwarded your info to my developer and he says that he is not able to convert: Hex to RGB and so apparently that's what is causing the problem.
  13. Hi Adam and thank you for posting I should of been more specific I want the opacity to affect:( .product_cont ) only. wil the above code you posted help with that?
  14. Hi my shopping cart has an image background whos opacity I want to be able to change so I had someone work on it and they managed to apply opacity to the whole section not just the back ground so now when opacity is set to 50% the opacity is being applied to not only the background but but it is being applied to the product tittle, product description, price, add to cart button, basically opacity is being added to everything. He says that it is unnavoidable because the opacity isbeing adde to the div that contains all of the shopping cart elements and so they too will have their opacity affected. So I was wondering if their is a way to apply opacity to the div and only affect the background and not the other elemnts in the div? here is the code sample <div style="background-image:url(<?= $bg ?>);background-color:<?= $color ?>" class="product_cont"> <h1 class="product_cat"><?= $category->name; ?></h1> <table width="100%"> <?php while ($product_query->have_posts()): $product_query->the_post(); $product_meta = get_post_meta(get_the_ID(), 'mac', TRUE); @extract($product_meta); $variety = @array_filter($variety); ?> <tr> <td width="10%" style="margin-left:20px;vertical-align:middle;"> <?php the_post_thumbnail(array(50, 50)); ?> </td> <td width="65%"> <span class="product_title" ><?php the_title(); ?></span> <p class="product_description"> <?= substr(get_the_content(), 0, 60); ?> </p> </td> <td width="10%"> <?php $product_price = get_post_meta(get_the_ID(), 'product_price', TRUE); $product_meta = get_post_meta(get_the_ID(), 'mac', TRUE); @extract($product_meta); echo "<p class='product_price'>$" . @number_format($product_price, 2) . "</p>" ?> </td> <td style="text-align:center;" width="15%"><button data-product="<?php the_ID(); ?>" class="add_cart_btn"><?= (!empty($acb_button_btn_text))? $acb_button_btn_text:"Add To Cart" ?></button></td> </tr> <div title="Add Item" style="display:none;" id="dialog-<?php the_ID(); ?>"> <form method="POST"> <input type="hidden" name="action" value="add_to_cart"> <input type="hidden" name="macp_cart[product_id]" value="<?php the_ID(); ?>"> <!-- Variety/Size --> <?php if ($variety != NULL): ?> <div style="width:100%;display:block;"> <p style="font-weight:bold;margin:0px;">Size</p> <input checked type="radio" name="macp_cart[variety]" value="<?php the_ID() ?>" /> Normal Price <br> <?php foreach ($variety as $key => $vrt) { if (!empty($vrt)) { $variety_post = get_post($key); $variety_meta = get_post_meta($key, 'mac', TRUE); echo "<input type='radio' name='macp_cart[variety]' value='$key' /> " . $variety_post->post_title . " <small>($$vrt)</small><br>"; } } ?> </div> <?php endif; ?> <!-- Product Option --> <?php if ($option != NULL): ?> <div style="width:100%;display:block;"> <p style="font-weight:bold;margin:0px;">Product Options</p> <?php $check = "checked"; foreach ($option as $key => $opt) { $option_post = get_post($key); $option_meta = get_post_meta($key, 'mac', TRUE); echo "<input $check type='radio' name='macp_cart[option]' value='$key' /> " . $option_post->post_title . " <small>($" . $option_meta['product_price'] . ")</small><br>"; $check = ""; } ?> </div> <?php endif; ?> <!-- Product Extra --> <?php if ($extra != NULL): ?> <div style="width:100%;display:block;"> <p style="font-weight:bold;margin:0px;">Product Extra</p> <?php foreach ($extra as $key => $ext) { $extra_post = get_post($key); $extra_meta = get_post_meta($key, 'mac', TRUE); echo "<input type='checkbox' name='macp_cart[extra][]' value='$key' /> " . $extra_post->post_title . " <small>($" . $extra_meta['product_price'] . ")</small><br>"; } ?> </div> <?php endif; ?> <div style="width:100%;display:block;margin:0px;"> <label for="user_note">Note.</label><br><textarea name="macp_cart[note]" id="user_note"></textarea> <br> <label for="qty">Quantity: </label><br><input type="text" name="macp_cart[qty]" id="qty" value="1"> <br> <input style="margin-top:10px;" type="submit" value="<?= (!empty($acb_button_btn_text))? $acb_button_btn_text:"Add To Cart" ?>"> </div> </form> </div> <?php endwhile; ?> </table> </div> And this is the CSS: <style> <?php $style_opt = get_option('ma_cp_style'); if (is_array($style_opt)) { extract($style_opt); } $cat_title_style = explode('|', $cat_title_font_type); $title_style = explode('|', $title_font_type); $dp_font_type = explode('|', $dp_font_type); $pp_font_type = explode('|', $pp_font_type); $cat_title_style[0] = str_replace(' ', '+', $cat_title_style[0]); $title_style[0] = str_replace(' ', '+', $title_style[0]); $dp_font_type[0] = str_replace(' ', '+', $dp_font_type[0]); $pp_font_type[0]= str_replace(' ', '+', $pp_font_type[0]); ?> @import url(<?= $title_style[0] ?>); @import url(<?= $cat_title_style[0] ?>); @import url(<?= $dp_font_type[0] ?>); @import url(<?= $pp_font_type[0] ?>); .product_cat{ font-family: <?= $cat_title_style[1] ?> !important; font-size:<?= $cat_title_font_size ?> !important; color:<?= $cat_title_font_color ?> !important; text-shadow: <?php extract($cat_title_shadow); echo "$h_shadow $v_shadow $blur $color !important"; ?> } .product_title{ font-family: <?= $title_style[1] ?> !important; font-size:<?= $title_font_size ?> !important; color:<?= $title_font_color ?> !important; } .product_description{ font-family: <?= $dp_font_type[1] ?> !important; font-size:<?= $dp_font_size ?>px !important; color:<?= $dp_font_color ?> !important; } .add_cart_btn{ background-color: <?= $acb_button_color ?> !important; border-radius: <?= $acb_button_radius ?> !important; box-shadow: <?php extract($acb_button_shadow); echo "$h_shadow $v_shadow $blur $speard $color !important"; ?>; color: <?= $acb_button_text_color ?>; } .add_cart_btn:hover{ background:none; background-color: <?= $acb_button_color_hover ?> !important; border-radius: <?= $acb_button_radius_hover ?> !important; box-shadow: <?php extract($acb_button_shadow_hover); echo "$h_shadow $v_shadow $blur $speard $color !important"; ?>; color: <?= $acb_button_text_color_hover ?> !important; } .product_cont{ background-image: url(<?= $cat_background_image ?>); border-radius: <?= $cat_background_container_radius ?> !important; box-shadow:<?php extract($cat_background_container_shodow); echo "$h_shadow $v_shadow $blur $speard $color !important"; ?> ; width: <?= (empty($cat_background_container_width))?"100%":$cat_background_container_width ?> !important; height: <?= (empty($cat_background_container_height))?"100%":$cat_background_container_height ?> !important; background-color: <?= $cat_background_container_color ?> !important; opacity: <?= (empty($cat_background_container_opacity) || $cat_background_container_opacity == "0")?'1':$cat_background_container_opacity/100 ?> !important; } .product_price{ font-family: <?= $pp_font_type[1] ?> !important; font-size:<?= $pp_font_size ?>px !important; color:<?= $pp_font_color ?> !important; } .product_cont table,.product_cont table td,.product_cont table tr{ border:none !important; } </style> Thank you for any help that anyone can provide. Glow
  15. lol ...I'm afraid you lost me there I'm just starting with php.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.