Originally Posted by
mc12345678
Note that the constants described there are assembled by prepending and appending the content surrounding the product_type such that they do not actually exist as the full text but instead as the portions that follow the PRODUCTS_ portion.
You won't find those constants for other product type other than the admin's collect_info area.
Now, that said, I'm a smidge disappointed that the document general was modified to exclude all of the features available to other product. The claim to this is that the document general product is typically not available for sale, but instead for display. Ok, so then why are all of the options available to the other product when set to not available to add to cart and why is the add to cart option available to the document general product type?
The constants are hard wired not auto generated, unless theirs some hidden code.. I forgot, this was an unmodified collect_info.php from ZC1.5.6a document_general folder, which is now modified to meet my needs.
This is the section of interest..
Code:
$parameters = array(
'products_name' => '',
'products_description' => '',
'products_url' => '',
'products_id' => '',
'products_quantity' => '0',
'products_model' => '',
'products_image' => '',
'products_price' => '0.0000',
'products_virtual' => DEFAULT_DOCUMENT_GENERAL_PRODUCTS_VIRTUAL,
'products_weight' => '0',
'products_date_added' => '',
'products_last_modified' => '',
'products_date_available' => '',
'products_status' => '1',
'products_tax_class_id' => DEFAULT_DOCUMENT_GENERAL_TAX_CLASS_ID,
'manufacturers_id' => '',
'products_quantity_order_min' => '1',
'products_quantity_order_units' => '1',
'products_priced_by_attribute' => '0',
'product_is_free' => '0',
'product_is_call' => '0',
'products_quantity_mixed' => '1',
'product_is_always_free_shipping' => DEFAULT_DOCUMENT_GENERAL_PRODUCTS_IS_ALWAYS_FREE_SHIPPING,
'products_qty_box_status' => PRODUCTS_QTY_BOX_STATUS,
'products_quantity_order_max' => '0',
'products_sort_order' => '0',
'products_discount_type' => '0',
'products_discount_type_from' => '0',
'products_price_sorter' => '0',
'master_categories_id' => ''
);
The default vales could be placed here. The product table is the same for the different product types so filling it with defaults values here make seance, the constants don't.
I use document_general for posting ads for products not hosted on my site. Just posting here what I found and some possible solutions to help...
Bookmarks