• Resolved gladiator121

    (@gladiator121)


    Hello ,

    The plugin have a serious problem which is it losing characters in the product’s name.
    Here is an example to improve your understanding
    I have entered a product’s name with this :
    Gold Standard 100% Whey Optimum

    But sadly to inform you sir , that an unknown bug causes to lose a character from this name.
    I got
    this Gold Standard 100% Whey Optimu

    we can easily notice that the Character M from the last word.
    also Its important to include that the allowed count of characters in zap policy is until 40, which means that im allowed to enter a name that contains 40 character without any problem.

    Here im levaing a link for the XML mirror Page.
    https://gladiatorr.net/zap-mirror-page/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Ido Friedlander

    (@idofri)

    Hi,

    Do you have any technical reference indicating that the limit is 40 and not 30 chars?
    I used to follow these instructions: https://img.zap.co.il/PDFs/ZapTechnicalRequirements.pdf

    BTW, since version 1.3 you could easily bypass these saved-settings using filter-hooks.

    Regards,
    Ido

    Thread Starter gladiator121

    (@gladiator121)

    Yes I have contacted them due that , And I have been answered that the allowed is 40.
    I can easily prove that for you by taking a look at some of products listed in zap.

    here is a link for a product that contains
    https://www.zap.co.il/search.aspx?keyword=elite+dymatize
    https://www.zap.co.il/model.aspx?modelid=917729

    Iam sorry but i just did not understand what you mean by ” bypass these saved-settings using filter-hooks”

    Thread Starter gladiator121

    (@gladiator121)

    Also I would like to attach an Image of the recent email that I have received from zap team.

    https://tinypic.com/r/9ad6iw/9

    Plugin Author Ido Friedlander

    (@idofri)

    Hi,

    I’ll add this modification to plugin’s next version.
    In the meanwhile, you could bypass this setting by adding this filter-hook in your theme’s functions.php file:

    add_action( 'wc_zap_mirror_xml_node', function( &$node, $product ) {
    	$node->PRODUCT_NAME = $product->get_name();
    }, 10, 2 );
    Thread Starter gladiator121

    (@gladiator121)

    Can you please explain more which class should i this method ? I have some of abilities of coding but defentily not as same as you , Give some of tips which class and where especially should i have add this function , I cannot find functions.php file.
    Thanks

    Thread Starter gladiator121

    (@gladiator121)

    I have found the class functions.php in my theme folder , but every time i add this code , my website got crashed and doesn’t run properly.

    Can you please explain where should this method/code have to be added in ?

    Plugin Author Ido Friedlander

    (@idofri)

    Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of add_action(). in /home3/gladiator/public_html/wp-includes/functions.php on line 153

    I said your theme’s functions.php, that’s not the right file.
    You should really avoid coding if you’re not sure what you’re doing.

    Your file should be under:
    /public_html/wp-content/themes/cardio/functions.php

    Thread Starter gladiator121

    (@gladiator121)

    You are right.
    I have found the right file and i have added this code but it doesn’t do any thing.

    here is a screenshot : https://tinypic.com/r/68zwo7/9

    it still keeps the limits until 30 chars.

    Plugin Author Ido Friedlander

    (@idofri)

    You kinda missed the purpose of this filter-hook.
    Nevermind that, Just remove it and upgrade to version 1.3.6.

    Thread Starter gladiator121

    (@gladiator121)

    It’s alright now , Alot of thanks for you. It was a pleasure for me to contact with you sir. Have a good day in Israel ??

    Plugin Author Ido Friedlander

    (@idofri)

    ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘BUG’ is closed to new replies.