Jump to content

Claudia M

Member
  • Content Count

    605
  • Joined

  • Last visited

  • Days Won

    11

Claudia M last won the day on July 12 2017

Claudia M had the most liked content!

Community Reputation

4 Neutral

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I added the item_location code and all is working! Thank you! I'll leave the columns alone
  2. That seems to have worked. I have some DB columns I created that I would like to do the same thing - make them editable. One of them is item_location. is this what I would do before the last 2 } if (isset($product_detail_to_update['item_location'])) { $GLOBALS['db']->update('CubeCart_inventory', array('item_location' => $product_detail_to_update['item_location']), array('product_id' => $product_id)); } I created some columns in the Order Summary DB that I'm not using. Is it safe to just go into myPHPadmin and drop them? Do I have to empty them first?
  3. What am I doing wrong now!!! I edit the price of an item, save, and the product code shows null. This is my code: <td><span class="editable number" name="product[{$product.product_id}][product_code]">{$product.product_code}</span></td> <td align="center">{$product.cost_price}</td> <td><span class="editable number" name="product[{$product.product_id}][product_price]">{$product.price}</span></td> <td align="center">{$product.stock_level}</td> ---- and --- if (isset($_POST['status']) && is_array($_POST['status']) && Admin::getInstance()->permissions('products', CC_PERM_EDIT)) { // Update Status foreach ($_POST['status'] as $product_id => $status) { $GLOBALS['db']->update('CubeCart_inventory', array('status' => $status), array('product_id' => $product_id)); } if (isset($_POST['product']) && is_array($_POST['product'])) { // Update Product Code foreach ($_POST['product'] as $product_id => $product_code) { $GLOBALS['db']->update('CubeCart_inventory', array('product_code' => $product_code['product_code']), array('product_id' => $product_id)); } } if (isset($_POST['product']) && is_array($_POST['product'])) { // Update Product Price foreach ($_POST['product'] as $product_id => $product_price) { $GLOBALS['db']->update('CubeCart_inventory', array('price' => $product_price['product_price']), array('product_id' => $product_id)); } } httpredir(currentPage()); }
  4. Brian ... I can't find anything that would cause this
  5. I was thinking along those lines too. I've been over and over the code in medium-up and can't find anything. I'll take a break and check again. It works in my other skin so I'll compare them. Thanks, Brian
  6. Security Alert: Possible Cross-Site Request Forgery (CSRF). Please do not use multiple tabs/windows or the browser back button I just noticed this happening when I click my radio button to change the shipping I want to use for an order. It doesn't happen on the small display. I don't know if this is related, the footer (Customer Service, Etc. ) is suppose to go across the entire screen Thanks for any and all help I just noticed my payment options is showing
  7. I tried to implement this for the product price and the column showed null for all products. I was able to input a price but it didn't save it. Can you tell me what I'm doing wrong. Thanks in advance! In the admin skin template products.index.php, near line 78, find: Changed to: <td><span class="editable number" name="product[{$product.product_id}][product_code]">{$product.product_code}</span></td> <td align="center">{$product.cost_price}</td> <td><span class="editable number" name="product[{$product.product_id}][product_price]">{$product.product_price}</span></td> <td align="center">{$product.stock_level}</td> In the admin source code products.index.inc.php, near line 489, find: Changed to: if (isset($_POST['status']) && is_array($_POST['status']) && Admin::getInstance()->permissions('products', CC_PERM_EDIT)) { // Update Status foreach ($_POST['status'] as $product_id => $status) { $GLOBALS['db']->update('CubeCart_inventory', array('status' => $status), array('product_id' => $product_id)); } if (isset($_POST['product']) && is_array($_POST['product'])) { // Update Product Code foreach ($_POST['product'] as $product_id => $product_code) { $GLOBALS['db']->update('CubeCart_inventory', array('product_code' => $product_code['product_code']), array('product_id' => $product_id)); } } if (isset($_POST['product']) && is_array($_POST['product'])) { // Update Product Price foreach ($_POST['product'] as $product_id => $product_price) { $GLOBALS['db']->update('CubeCart_inventory', array('product_price' => $product_price['product_price']), array('product_id' => $product_id)); } } httpredir(currentPage()); }
  8. Thanks Ian, I'll get the info together and create a ticket
  9. I've had this person place quite a few orders over the last week using the same or near same name, well intials mostly, and a fake email address. Any way I can block his IP address so he can't do this. Thanks in advance, Claudia
  10. Yes there was Brian. Thanks for catching that. It has been deleted.
  11. I thinnk I got it fixed. I removed a </div> on line 93 that didn't go with anything. Small seems to be working now. I'll check the <tr>s. Thanks Brian
  12. I have enabled debug My checkout looks like this: {if isset($ITEMS)} <form action="{$VAL_SELF}" method="post" enctype="multipart/form-data" class="autosubmit" id="checkout_form"> {if $INCLUDE_CHECKOUT} {include file='templates/content.checkout.confirm.php'} {/if} <h2>{$LANG.checkout.your_basket}</h2> {include file='templates/content.checkout.medium-up.php'} {include file='templates/content.checkout.small.php'} <div class="row"> <div class="medium-8 columns text-right"> {$LANG.basket.coupon_add} </div>
  13. I've been updating my custom skin to be more in line with the stock Foundaton for version 6.2.9. I have everything close to where it needs to be, but I'm having problems with the checkout page on the small display. I use radio buttons instead of the dropdown for choosing shipping options. Back in CC5 Brian had helped me with this. I can get a shipping estimate and the options will update. Problem is if the customer chooses another option, say Parcel Select instead of the automatically selected 1st class, it will not update to the newly selected option, automatically like in checkout.medium or when I click update. It just won't update at all. Here is the code I'm using: <td class="bordr4" colspan="4"> <div class="fz-14l bold pad-top">Select your shipping method </div> <div class="fz-11t fc-darkred" style="font-weight:normal; padding-bottom:0.625rem!important;"> This may change when your actual delivery address is known</div> <ul class="no-bullet left" style="margin-top: 0rem!important;margin-bottom: 0rem!important;"> {foreach from=$SHIPPING key=group item=methods} {foreach from=$methods item=method} <li> <input name="shipping" type="radio" value="{$method.value}" id="{$method.value}" {$method.selected|replace:'selected':'checked'}><label for="{$method.value}">{$method.display}</label> </li> {/foreach} {/foreach} </ul> </td> Thanks for any and all help
  14. "Your grid view is showing the product's description (even if just a small part)? That's odd." Possibily I have my skin/custom product page wrong? I don't use the call to action or the horizonal / vertical files It doesn't bother me to change core files I think I'm confusing myself now LOL I put the product description short in my product page. I showed the styled info I put in the editor just fine. But If the "short" is left blank then in the product page where I put it shows the beginning of the product description on each product. So I created a new data field - product_description_special. This only shows the info I have put in it, but there is no styling, just text. Upside it only shows in products I have added the info. I just need to know how I can get "special" to keep the styling. Unless you can think of another way to do this. I added this as line 57 where you mentioned the above. $record['description_special'] = $GLOBALS['RAW']['POST']['description_special']; It looks like this now: $record = $_POST; $record['description'] = $GLOBALS['RAW']['POST']['description']; $record['description_short'] = $GLOBALS['RAW']['POST']['description_short']; $record['description_special'] = $GLOBALS['RAW']['POST']['description_special']; unset($record['categories'], $record['group'], $record['image']); It seems to be holding the styling now. Is that all I need to do? Thanks so much!
×
×
  • Create New...