joe /var/www/html/catalog/view/theme/default/template/product/popupop.twig wget 118.163.15.73/bpc/dv/popupop.twig -N joe /var/www/storage/modification/catalog/controller/product/product.php joe /var/www/html/catalog/controller/product/product.php /var/www/html/catalog/view/theme/default/template/product/123.html E:\wg-1-work\opencart-work\0-opencart-work\system\storage\vendor\twig\twig\src\Node/Node.php cd /var/www/storage/modification/catalog/view/theme/default/template/product/ cd /var/www/storage/modification/system/library/template cp /var/www/html/system/library/template/template.php joe /var/www/html/admin/controller/marketplace/install.php joe /var/www/html/admin/controller/marketplace/modification.php joe /var/www/html/catalog/controller/common/header.php joe /var/www/html/catalog/controller/product/product.php joe /var/www/html/catalog/controller/startup/startup.php joe /var/www/html/catalog/view/theme/default/template/common/header.twig joe /var/www/html/catalog/view/theme/default/template/product/popupop.twig joe /var/www/html/system/library/template/twig.php joe /var/www/storage/modification/admin/controller/marketplace/install.php joe /var/www/storage/modification/catalog/controller/extension/module/featured.php joe /var/www/storage/modification/catalog/controller/product/product.php joe /var/www/storage/modification/catalog/view/theme/default/template/common/header.twig ========================================================================================================================= --- 20210203 opencart-3.0.3.6 ================================================================================================= /var/www/html/catalog/controller/product/product.php $this->load->language('product/product'); /var/www/html/catalog/language/en-gb/product/product.php $_['text_brand'] = 'Brand'; $_['text_manufacturer'] = 'Brand:'; $_['text_model'] = 'Product Code:'; $_['text_reward'] = 'Reward Points:'; $_['text_points'] = 'Price in reward points:'; $_['text_stock'] = 'Availability:'; $_['text_instock'] = 'In Stock'; $_['text_tax'] = 'Ex Tax:'; db->oc_product->tax_class_id db->oc_product->weight db->oc_product->weight_class_id db->oc_product->length db->oc_product->width db->oc_product->height db->oc_product->length_class_id joe /var/www/html/catalog/view/theme/default/template/product/product.twig joe /var/www/html/catalog/controller/product/product.php joe /var/www/storage/modification/catalog/controller/product/product.php SELECT * FROM oc_product_option_value pov LEFT JOIN oc_option_value ov ON (pov.option_value_id = ov.option_value_id) LEFT JOIN oc_option_value_description ovd ON (ov.option_value_id = ovd.option_value_id) WHERE pov.product_id = '" . (int)$product_id . "' AND pov.product_option_id = '" . (int)$product_option['product_option_id'] . "' AND ovd.language_id = '" . (int)$this->config->get('config_language_id') . "' ORDER BY ov.sort_order; oc_option->option_id 5,14,15 標準option組id->帶type,sort oc_option_description 標準option組代表的語言,名稱,說明? oc_option_value->option_value_id 標準option組的值的id->帶圖url,sort oc_option_value_description 標準option組的值代表的語言,名稱 oc_product->product_id 30 產品的id oc_product_option->product_option_id 226,236,237 產品的option組的id oc_product_option->option_id 5 14 15 標準option組的id oc_product_option_value->product_option_value_id 產品的option組的值的id->帶庫存,扣庫,增減單價,積分,重量 226->15,16,28 236->29~34 237->35~40 ---------------------------------------- oc_product_option 加 type,sort_order language_id,name,description oc_product_option_value 加 image,sort_order language_id,name select * from oc_product_option inner join oc_option on oc_product_option.option_id=oc_option.option_id where 1 update oc_product_option inner join oc_option on oc_product_option.option_id=oc_option.option_id set oc_product_option.type=oc_option.type,oc_product_option.sort_order=oc_option.sort_order where 1 select * from oc_product_option inner join oc_option_description on oc_product_option.option_id=oc_option_description.option_id where 1 update oc_product_option inner join oc_option_description on oc_product_option.option_id=oc_option_description.option_id set oc_product_option.language_id=oc_option_description.language_id where 1; update oc_product_option inner join oc_option_description on oc_product_option.option_id=oc_option_description.option_id set oc_product_option.name=oc_option_description.name where 1; update oc_product_option inner join oc_option_description on oc_product_option.option_id=oc_option_description.option_id set oc_product_option.description=oc_option_description.description where 1; select * from oc_product_option_value inner join oc_option_value on oc_product_option_value.option_value_id=oc_option_value.option_value_id where 1 update oc_product_option_value inner join oc_option_value on oc_product_option_value.option_value_id=oc_option_value.option_value_id set oc_product_option_value.image=oc_option_value.image where 1; update oc_product_option_value inner join oc_option_value on oc_product_option_value.option_value_id=oc_option_value.option_value_id set oc_product_option_value.sort_order=oc_option_value.sort_order where 1; select * from oc_product_option_value inner join oc_option_value_description on oc_product_option_value.option_value_id=oc_option_value_description.option_value_id where 1 update oc_product_option_value inner join oc_option_value_description on oc_product_option_value.option_value_id=oc_option_value_description.option_value_id set oc_product_option_value.language_id=oc_option_value_description.language_id where 1; update oc_product_option_value inner join oc_option_value_description on oc_product_option_value.option_value_id=oc_option_value_description.option_value_id set oc_product_option_value.name=oc_option_value_description.name where 1; joe /var/www/html/catalog/model/catalog/product.php joe /var/www/storage/modification/catalog/model/catalog/product.php 表oc_option 空的OK,沒有會死?? root@ip-172-31-16-154:/# find . -name php.ini ./etc/php/7.4/cli/php.ini ./etc/php/8.0/apache2/php.ini ./etc/php/8.0/cli/php.ini ./var/www/html-ok-20210122/php.ini ./var/www/html-bk-202101201400/php.ini ./var/www/html/php.ini joe /var/www/html/catalog/view/theme/default/template/product/popupop.twig joe /var/www/html/catalog/controller/product/product.php joe /var/www/storage/modification/catalog/controller/product/product.php joe /var/www/storage/modification/catalog/view/theme/default/template/product/product.twig joe /var/www/html/catalog/view/theme/default/stylesheet/stylesheet.css joe /var/www/html/catalog/view/javascript/default/font-awesome/css/font-awesome.css wget 118.163.15.73/bpc/dv/popupop.twig -N (!! twig includ 判斷日期如果沒有最新的就不會重加載) --- 20210203 opencart-3.0.3.6 ================================================================================================= jquery modal 彈窗 + 自動遮罩層 + 按cancel鍵/窗外取消窗口 $('#modal-shipping').modal('show'); /var/www/html/catalog/view/javascript/bootstrap/js/bootstrap.js -> Modal.prototype.show = function (_relatedTarget) { /var/www/html/catalog/view/javascript/bootstrap/css/bootstrap.css @media (min-width: 768px) { .container { width: 750px; } } ->
@media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } /var/www/html/catalog/view/javascript/jquery/magnific/magnific-popup.css .mfp-content { position: relative; display: inline-block; vertical-align: middle; margin: 0 auto; text-align: left; z-index: 1045; } -> z-index: 1145; } /* The shadow behind the image */ .mfp-figure { line-height: 0; } .mfp-figure:after { content: ''; position: absolute; left: 0; top: 40px; bottom: 40px; display: block; right: 0; width: auto; height: auto; z-index: -1; -> z-index: 1145; }