Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter ericgonzalezoboe

    (@ericgonzalezoboe)

    After debug for a while i found out this

    in the pages are nor working correctly

    Notice: id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/flatsome/woocommerce/single-product.php’), wc_get_template_part, load_template, require(‘/themes/flatsome/woocommerce/content-single-product.php’), wc_get_template_part, load_template, require(‘/themes/flatsome/woocommerce/single-product/layouts/product-no-sidebar.php’), do_action(‘woocommerce_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_template_single_add_to_cart, do_action(‘woocommerce_variable_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_variable_add_to_cart, WC_Product_Variable->get_available_variations, WC_Product_Variable->get_available_variation, wc_get_stock_html, WC_Product->get_availability, apply_filters(‘woocommerce_get_availability’), WP_Hook->apply_filters, call_user_func_array, WC_Min_Max in /home/egreedsc/public_html/desarrollo/wp-includes/functions.php on line 4138

    of course i have google it … but not very sure how to solvent .

    Any help?

    thank you .

    Thread Starter ericgonzalezoboe

    (@ericgonzalezoboe)

    Dear Lorro ,

    Our web site is not open so I can′t post the link. but i post some pictures.

    https://goo.gl/5zgClT

    thank you very much.

    Thread Starter ericgonzalezoboe

    (@ericgonzalezoboe)

    Hi Lorro!

    thank you very much for your answer .

    Tried already , you are right 100% thank you very much.

    Now only some extra problems. When i go to the category page with the woocommerce backen i can introduce the code in 2 positions.

    1 – Top content
    2 – Botton content

    and i would like show the product in the line with the others . Do you think is possible?

    thank you very much.

    Regards.

    Thread Starter ericgonzalezoboe

    (@ericgonzalezoboe)

    HI D Smith , thank you very much for your answer.

    We have configured all right over there. But still sending the same e mail when is a NEW ORDER that when is PROCESSING ORDER .

    any suggestion?

    regards.

    Thread Starter ericgonzalezoboe

    (@ericgonzalezoboe)

    hello!

    I dint try with a standard one,.

    The problem is that when I have no stock the bottom doesn’t appear . So people can’t click on it because is not there.
    I totally think that i miss some code line, I paste you the code up

    Thank you !

    Hello , thank you for try help me.
    I change the code ,
    I still having some problems.

    1 I changed the URL for the order way to call it.

    src: local(‘ipaexm’), local(‘ipaexm’), url(<?php echo $wpo_wcpdf->export->template_path; ?>/fonts/ipaexm.ttf) format(‘truetype’);

    and was really working for sort time, but never display the total of the invoice , just partially ( but in Chinese .. ) so ok .

    2 now i tried again and it doest work any more and with the debug mode..

    Notice: Constant FORCE_SSL_ADMIN already defined in /home/egreedsc/public_html/wp-config.php on line 87

    Notice: Undefined offset: 5 in /home/egreedsc/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/stylesheet.cls.php on line 1115

    Notice: Undefined index: in /home/egreedsc/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 3154

    Notice: Undefined index: in /home/egreedsc/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 3521

    Notice: Undefined index: in /home/egreedsc/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 2549

    Notice: Undefined index: in /home/egreedsc/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 3154

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 5572568 bytes) in /home/egreedsc/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 1406

    <?php global $wpo_wcpdf;?>
    /* Load font */
    @font-face {
    font-family: 'ipaexm';
    font-style: normal;
    font-weight: normal;
    src: local('ipaexm'), local('ipaexm'), url(<?php echo $wpo_wcpdf->export->template_path; ?>/fonts/ipaexm.ttf) format('truetype');
    }
    @font-face {
    font-family: 'ipaexm';
    font-style: normal;
    font-weight: bold;
    src: local('ipaexm Bold'), local('ipaexm-Bold'), url(<?php echo $wpo_wcpdf->export->template_path; ?>/fonts/ipaexm.ttf) format('truetype');
    }
    @font-face {
    font-family: 'ipaexm';
    font-style: italic;
    font-weight: normal;
    src: local('ipaexm Italic’),local('ipaexm-Italic’), url(<?php echo $wpo_wcpdf->export->template_path; ?>/fonts/ipaexm.ttf) format('truetype');
    }
    @font-face
    font-family: 'ipaexm';
    font-style: italic;
    font-weight: bold;
    src:src: local('ipaexm Bold Italic'),local('ipaexm-Bold-Italic'), url(<?php echo $wpo_wcpdf->export->template_path; ?>/fonts/ipaexm.ttf) format('truetype');
    }
    @page {
    	margin-top: 1cm;
    	margin-bottom: 3cm;
    	margin-left: 2cm;
    	margin-right: 2cm;
    }
    body {
    	background: #fff;
    	color: #000;
    	margin: 0cm;
    	font-family: 'ipaexm';
    	font-size: 9pt;
    	line-height: 100%; /* fixes inherit dompdf bug */

    What do you think about?

    regards and thank you

    Hello again! first of all, thank you very much for you help.

    I change the code. what happen now is the next.

    The pdf come in blank ….

    1 – i activate output to HTML , and the invoice come out perfect in JP.
    2- Notice: Constant FORCE SSL ADMIN already defined in /home/egreedssc/public_html/wp-config.php on line 87

    any suggestions?

    thank you very much .
    EG

    OK.. tired but doest work.

    well will paste the full code .

    What do you think?
    thank you very much.
    _________________

    <?php global $wpo_wcpdf;?>
    /* Main Body */
    
    <?php global $wpo_wcpdf;?>
    /* Load font */
    @font-face {
        font-family: 'ipaexm';
        font-style: normal;
        font-weight: normal;
        <strong>src: local('ipaexm'), local('ipaexm'), url(https://www.eg-reeds.com/fonts/ipaexm.ttf) </strong>format('truetype');
    }
    @font-face {
        font-family: 'ipaexm.ttf';
        font-style: normal;
        font-weight: bold;
        <strong>src: local('ipaexm'), local('ipaexm'), url(https://www.eg-reeds.com/fonts/ipaexm.ttf) format('truetype');}</strong>
    @font-face {
        font-family: 'ipaexm';
        font-style: italic;
        font-weight: normal;
        <strong>src: local('ipaexm'), local('ipaexm'), url(https://www.eg-reeds.com/fonts/ipaexm.ttf) format('truetype');</strong>
    }
    @font-face {
        font-family: 'ipaexm';
        font-style: italic;
        font-weight: bold;
       <strong> src: local('ipaexm'), local('ipaexm'), url(https://www.eg-reeds.com/fonts/ipaexm.ttf) format('truetype');</strong>
    
    @page {
    	margin-top: 1cm;
    	margin-bottom: 3cm;
    	margin-left: 2cm;
    	margin-right: 2cm;
    }
    body {
    	background: #fff;
    	color: #000;
    	margin: 0cm;
    	<strong>font-family: 'ipaexm';</strong>
    	font-size: 9pt;
    	line-height: 100%; /* fixes inherit dompdf bug */
    }
    h1, h2, h3, h4 {
    	font-weight: bold;
    	margin: 0;
    }
    
    h1 {
    	font-size: 16pt;
    	margin: 5mm 0;
    }
    
    h2 {
    	font-size: 14pt;
    }
    
    h3, h4 {
    	font-size: 9pt;
    }
    
    ol,
    ul {
    	list-style: none;
    	margin: 0;
    	padding: 0;
    }
    
    li,
    ul {
    	margin-bottom: 0.75em;
    }
    
    p {
    	margin: 0;
    	padding: 0;
    }
    
    p + p {
    	margin-top: 1.25em;
    }
    
    a {
    	border-bottom: 1px solid;
    	text-decoration: none;
    }
    
    /* Basic Table Styling */
    table {
    	border-collapse: collapse;
    	border-spacing: 0;
    	page-break-inside: always;
    	border: 0;
    	margin: 0;
    	padding: 0;
    }
    
    th, td {
    	vertical-align: top;
    	text-align: left;
    }
    
    table.container {
    	width:100%;
    	border: 0;
    }
    
    tr.no-borders,
    td.no-borders {
    	border: 0 !important;
    	border-top: 0 !important;
    	border-bottom: 0 !important;
    	padding: 0 !important;
    	width: auto;
    }
    
    /* Header */
    table.head {
    	margin-bottom: 12mm;
    }
    
    td.header img {
    	max-height: 3cm;
    	width: auto;
    }
    
    td.header {
    	font-size: 16pt;
    	font-weight: 700;
    }
    
    td.shop-info {
    	width: 40%;
    }
    .document-type-label {
    	text-transform: uppercase;
    }
    
    /* Recipient addressses & order data */
    table.order-data-addresses {
    	width: 100%;
    	margin-bottom: 10mm;
    }
    
    td.order-data {
    	width: 40%;
    }
    
    .invoice .shipping-address {
    	width: 30%;
    }
    
    .packing-slip .billing-address {
    	width: 30%;
    }
    
    td.order-data table th {
    	font-weight: normal;
    	padding-right: 2mm;
    }
    
    /* Order details */
    table.order-details {
    	width:100%;
    	margin-bottom: 8mm;
    }
    
    .quantity,
    .price {
    	width: 20%;
    }
    
    .order-details tr {
    	page-break-inside: always;
    	page-break-after: auto;
    }
    
    .order-details td,
    .order-details th {
    	border-bottom: 1px #ccc solid;
    	padding: 0.375em;
    }
    
    .order-details th {
    	font-weight: bold;
    	text-align: left;
    }
    
    .order-details thead th {
    	color: white;
    	background-color: black;
    	border-color: black;
    }
    
    dl {
    	margin: 4px 0;
    }
    
    dt, dd, dd p {
    	display: inline;
    	font-size: 7pt;
    	line-height: 7pt;
    }
    
    dd {
    	margin-left: 5px;
    }
    
    dd:after {
    	content: "\A";
    	white-space: pre;
    }
    
    /* Notes & Totals */
    .customer-notes {
    	margin-top: 5mm;
    }
    
    table.totals {
    	width: 100%;
    	margin-top: 5mm;
    }
    
    table.totals th,
    table.totals td {
    	border: 0;
    	border-top: 1px solid #ccc;
    	border-bottom: 1px solid #ccc;
    }
    
    table.totals th.description,
    table.totals td.price {
    	width: 50%;
    }
    
    table.totals tr:last-child td,
    table.totals tr:last-child th {
    	border-top: 2px solid #000;
    	border-bottom: 2px solid #000;
    	font-weight: bold;
    }
    
    table.totals tr.payment_method {
    	display: none;
    }
    
    /* Footer Imprint */
    #footer {
    	position: absolute;
    	bottom: -2cm;
    	left: 0;
    	right: 0;
    	height: 2cm; /* if you change the footer height, don't forget to change the bottom (=negative height) and the @page margin-bottom as well! */
    	text-align: center;
    	border-top: 0.1mm solid gray;
    	margin-bottom: 0;
    	padding-top: 2mm;
    }

    Thank you very much for your help!

    really helpful !!! THANK YOU

    now I still with some questions

    in the 3 step..

    now looks like this
    @page {
    margin-top: 1cm;
    margin-bottom: 3cm;
    margin-left: 2cm;
    margin-right: 2cm;
    }
    body {
    background: #fff;
    color: #000;
    margin: 0cm;
    font-family: ‘Open Sans’, sans-serif;
    font-size: 9pt;
    line-height: 100%; /* fixes inherit dompdf bug */
    }

    them must be like this right?

    @page {
    margin-top: 1cm;
    margin-bottom: 3cm;
    margin-left: 2cm;
    margin-right: 2cm;
    }
    body {
    background: #fff;
    color: #000;
    margin: 0cm;
    font-family: ‘ipaexm’, ipaexm-serif;
    font-size: 9pt;
    line-height: 100%; /* fixes inherit dompdf bug */
    }

    _____________________

    ones more thank you

    Ok , maybe this question will help other people.

    Well I spent like 2 days trying todo it but…. doest work . Of course is because i am doing something incorrect.

    fist step i created copy all to child theme and create the folder fonts , after i upload the font . Of course as well i created the pdf folder.

    2 . with all the files there i strated to write the code . I am sure where is the mistake.

    <?php global $wpo_wcpdf;?>
    /* Load font */
    @font-face {
    font-family: ‘ipaexm’;
    font-style: normal;
    font-weight: normal;
    src: local(‘ipaexm’), local(‘ipaexm’), url(<?php echo $wpo_wcpdf->export->template_path; https://www.eg-reeds.com/fonts/ipaexm.ttf) format(‘truetype’);
    }
    @font-face {
    font-family: ‘ipaexm.ttf’;
    font-style: normal;
    font-weight: bold;
    src: local(‘ipaexm.ttf Bold’), local(‘ipaexm-Bold’), url(<?php echo $wpo_wcpdf->export->template_path; https://www.eg-reeds.com/fonts/ipaexm-bold.ttf) format(‘truetype’);
    }
    @font-face {
    font-family: ‘ipaexm’;
    font-style: italic;
    font-weight: normal;
    src: local(‘ipaexm Italic’), local(‘ipaexm.ttf-Italic’), url(<?php echo $wpo_wcpdf->export->template_path; https://www.eg-reeds.com/fonts/ipaexm-italic.ttf) format(‘truetype’);
    }
    @font-face {
    font-family: ‘ipaexm’;
    font-style: italic;
    font-weight: bold;
    src: local(‘ipaexm Bold Italic’), local(‘ipaexm-BoldItalic’), url(<?php echo $wpo_wcpdf->export->template_path; https://www.eg-reeds.com/fonts/ipaexm-bolditalic.ttf) format(‘truetype’);

    3 – Step-
    I am not sure where i must paste this…

    then make sure you assign that font family to the body or other elements of the template:

    body {
    font-family: ‘ipaexm’;
    }

    4- step.

    after this i am nos sure if i must change something in WP or if is all.

    thank you very much for your help.

    regards.

    Thread Starter ericgonzalezoboe

    (@ericgonzalezoboe)

    Dear Kayless ,

    thank you for your help .

    I tried all, but doest work. maybe i am doing not the right

    i tried :

    127.0.0.1 localhost to eg-reeds.com
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost

    ____

    127.0.0.1 eg-reeds.com
    255.255.255.255 broadcasthost
    ::1 eg-reeds.com
    fe80::1%lo0 localhost

    _________

    localhost to eg-reeds.com
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost

    _____

    127.0.0.1 localhost to eg-reeds.com
    255.255.255.255 broadcasthost
    ::1 eg-reeds.com
    fe80::1%lo0 localhost

    something to do ? THANK YOU !!!

    regards

    Thread Starter ericgonzalezoboe

    (@ericgonzalezoboe)

    Hello!
    Thank you very very much for this soft !

    i was all the day working very hard and nothing work even the MAMP stopped to work because I did something wrong . I installed again OS X so now all is ok . Localhost:8888 is working perfect but GasMAsk is not working .

    https://dl.dropboxusercontent.com/u/105810472/Captura%20de%20pantalla%202015-02-04%20a%20las%2019.48.27.png

    I did what you say but doest work .

    any sugesstion?

    thank you !

Viewing 12 replies - 1 through 12 (of 12 total)