Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Is there any easy way to uninstall all the patches etc as i really do need the text one available or is there some altering of code that can be done?
Not sure I understand your question..
Which patches are you referring to??
What do you mean by "i really do need the text one"??
If in your second question you are referring to a text attribute, there is no method in any flavor of SBA to tie a text attribute to stock. SBA in it's current flavors is meant to work for tangible types of attributes (such as size, or color). I know this applies to Kurois version,a nd I'm pretty sure it is supposed to applie to the other flavors as well..
If I am understanding you correctly (and you will have to confirm), it sounds like you are looking for the ability to have non-stock bearing attributes along with stock bearing attributes appklied to a product.
For example let's say you have the following product variant:
T-Shirts
Size: Small
Color: Blue
Number in Stock: 6
Customer could select this product combo (Small, Blue T-Shirt) and also be given an option to have the shirt personalized. The product page would include a textbox attribute where the customer could enter the text they want on the t-shirt.
This would require SBA to allow you to flag some product attributes as non-inventory attributes. Now here's the bad news.. If this is the kind of functionality you are looking for, this mod simply will not support that..![]()
I am looking to move the text that says
"In Stock"
Next to the area where the attributes are instead of where it is.
also is there a way to make a square around the entire area?
Well since I am wishing... Also make the background of that block a different color....
Tried and failed miserably.... Here is the unmodified section.
Link
http://www.nothingbutcostumes.com/in...ducts_id=15554
Stock by Attributes mod by decantlor. Code:
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
//jstephens added for attribute quantity.
if(PRODUCT_STOCK_ATTRIBUTE_SHOW == 'true' && zen_qty_product_attributes_count((int)$_GET['products_id'])) {
$output = '';
include("stock_check.php");
$inf = strlen($output)?$output . '<br />':'';
$attib_qty2 = <<<ABC
<div id='form_stock_check'>$inf
<input type='submit' value='Check Stock' name='stock_check' />
</div>
<script>
document.getElementById('form_stock_check').style.display = 'none';
</script>
ABC;
$attib_qty1 = <<<ABC
<script>
document.write("<div class='attributeQuantity' id='stockTeller'>Checking...</div>");
</script>
ABC;
$display_qty = $attib_qty1 . $display_qty;;
}
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
echo $attib_qty2;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
* display the product atributes
*/
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
}
?>
<!--eof Attributes Module -->
Does this mod in any way create unique SKUs for each product/attribute combination by appending the attribute onto the base SKU?
I'm searching real hard for a way to sync my Zen Cart with a Quickbook point of sale system, but Zen Cart's attribute system is making it basically impossible, I need separate SKUs for each attribute combination.
Thanks.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Bookmarks