Skip to content

Instantly share code, notes, and snippets.

{dbsinvoice::dbsiBarCode($order_detail.product_reference)}
<table style="page-break-inside:avoid">
/* Table Codes */
</table>
@AliShareei
AliShareei / gist:5435bbb2d34819f0732551bff8f58f0a
Last active June 20, 2018 11:51
رفع مشکل لاینرتایمر و تغییرات فایل dbsap-main.js در ماژول شگفت انگیز
function tabAutoPlay($wrapper,speed) {
var speed = parseInt($wrapper.data('speed')) || 4000;
var linerTimerInterval;
tabTimer = setInterval(function(){
var $titles = $wrapper.find('.dbsa_tab_titles');
var $active = $titles.find('.dbsa_active_title');
var $target = $active.next();
if($target.length){
@AliShareei
AliShareei / gist:0320e4f72ff39b2c4f03932f75da57d4
Last active March 5, 2018 13:25
آموزش تنظیم تایمر ماژول شگفت انگیز
پنهان کردن تایمر در موبایل و تبلت
@media screen and (max-width: 650px) {
#dbs-theme-builder .dbsa_timer {
display: none;
}
}
نمونه کد تنظیم تایمر در اندازه های مختلف تبلت ، موبایل و موبایلهای کوچکتر
{if !$dbsi_is_last}
<div class="dbsi-page-break" style="margin-top: 5px;"></div>
{/if}
نمایش پیام مشتری هنگام ثبت سفارش
{assign var="cmessage" value=CustomerMessage::getMessagesByOrderId($order->id)}
{$cmessage.0.message}
-------------------------------------------------------------------------
نمایش توضیحات موقع ثبت نام یا توضیحات اضافی آدرس
که دو نوع است آدرس ارسال و آدرس ثبت سفارش یا فاکتور
توضیحات آدرس ارسال
{$dbsi_buyer.delivery.other}
@AliShareei
AliShareei / example form
Created December 4, 2017 12:01
example form
public function getContent()
{
$fields_form = array(
'form' => array(
'legend' => array(
'title' => $this->trans('Settings', array(), 'Admin.Global'),
'icon' => 'icon-cogs'
),
'input' => array(
array(