Forum Replies Created

Viewing 15 replies - 76 through 90 (of 92 total)
  • Thread Starter Tim Codex

    (@tien-nguyen)

    Dear catacaustic,

    Thank you for the suggestion. We can not use rewrite because the ghost page and the real pages have similar permalink structure. I will raise a solution here when I found one. Thank you again.

    BR.

    Thread Starter Tim Codex

    (@tien-nguyen)

    Hi Jon.

    We don’t want to create page. Can you? Just simple because we don’t want. And you can not, of course.

    Even customer can delete the page at any time and make the theme stop working.

    Just simple we don’t want, do you have solution? Of course you have no.

    My customer don’t want an alternate solution, just say “YES” or “NO” with the question directly.

    Thanks.

    Thread Starter Tim Codex

    (@tien-nguyen)

    Dear Jon.

    Of course I enabled the Pretty Permalinks structure. It will work if you created a page called “buynow”. The problem is my customer don’t want to create that page but still want WordPress serve that URL similar with a normal page (like when you created).

    We can call this is a built-in page for theme, customers just install theme and don’t need to create any page to make the theme work with their site.

    So the question may be more simpler: A site has no /buynow/ page but visitor still can access /buynow/ and work with it without 404 error.

    You said

    WordPress is a Content Management System. You can do anything with it.

    so I hope you can answer this.

    Thank you very much.

    Thread Starter Tim Codex

    (@tien-nguyen)

    Hi Jon.

    Sorry if the question is confusing.
    I would like to explain: I did not create any /buynow/ page. But when visitors access /buynow/, WordPress must process it as a normal page instead of raising a 404 error. Can you?

    Thanks.

    Thread Starter Tim Codex

    (@tien-nguyen)

    And I don’t want to think that WordPress can not do a thing.

    Thread Starter Tim Codex

    (@tien-nguyen)

    Hi catacaustic

    I tried, but he (my customer) still want to do that. I said “nobody in this world can do that”, but now I also suspect myself.

    I also tried add_submenu_page with null parent slug

    add_submenu_page(
              null
            , 'My Custom Submenu Page'
            , 'My Custom Submenu Page'
            , 'read'
            , 'my-custom-submenu-page'
            , 'my_custom_submenu_page_callback'
        );

    But in this case, I don’t know what’s URL of the sub page if have no parent slug. Do you have experience with this? But this is also not an answer for the question (T_T).

    Thank you.

    Thread Starter Tim Codex

    (@tien-nguyen)

    Dear catacaustic,

    So that’s why I said: “YOU CAN’T”. You don’t know how to do that just in case you want it. You just find another solution. But think, your customer want it even you explained too much with him.

    And more, javascript is easy to be hacked with modifying directly in browser inspector. I need to redirect to the page to get information, save many thing, redirect if valid. And after users paid successful, Paypal will redirect back to my page and I will use session to process the return back token to save user information to our database.

    “How can access a blank page https://domain.com/buynow/ without 404 error and not need to create a static page?”

    Simple question but you can not answer it.

    Best regards,
    Tien

    Thread Starter Tim Codex

    (@tien-nguyen)

    Dear.

    I want to make a payment gateway. After users click Buynow button, WordPress will redirect to https://domain.com/buynow/ and this page will negotiate with Paypal to get token and then redirect to the Paypal checkout with the received token.

    But if I don’t create a page, WordPress will raise 404 error.

    Of course, I know you can create a Static Page in dashboard to solve this, but:
    – First: Simple, I don’t want to create a Static Page, and can you do that?
    – Second: I will create a theme for many sites as once, and users don’t need to remember to create a page to make the theme work with their sites. All pages must be ready at beginning.

    Now, the question can be simpler: How can access a blank page https://domain.com/buynow/ without 404 error and not need to create a static page?

    YOU CAN’T, RIGHT?

    Thanks.

    Tim Codex

    (@tien-nguyen)

    Dear Coen,

    I also get the same bug when query posts for an ajax request:
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wc_setup_product_data' not found or invalid function name in D:\desktop-server\www.themes.dev\wp-includes\plugin.php on line 507

    And I found the below line is the reason of bug (in file: wp-content\plugins\woocommerce\includes\wc-template-hooks.php):

    add_action( 'the_post', 'wc_setup_product_data' );

    Regardless your purpose for the line of code, the way you hooked this action without check that a page loaded header (or not) is not acceptable.

    Thanks,
    Tien

    What’s the version of WP that you are using? I installed 23 and have no this error with version 3.6+

    Thread Starter Tim Codex

    (@tien-nguyen)

    Dear Ken,

    Thank for your suggestion, it’s working now. I found NGNIX can not process <?, you must use <?php.

    Best regards,
    Tien

    Thread Starter Tim Codex

    (@tien-nguyen)

    Dear bcworkz,

    I solved it by input direct the character I want: ?

    Thank you,
    Tien

    Thread Starter Tim Codex

    (@tien-nguyen)

    Hi Bigul,

    Finished added you as Admin of Tamsao.com. Now you have full permission for all resource of this website, include Types plugin.

    Please check your email for the password.

    Thank you,
    Tien

    Thread Starter Tim Codex

    (@tien-nguyen)

    Hi Bigul,

    Because I have many important project on only one host, so I can not share admin detail but I will set you as my blog Editor that you can full permission to access template code. Is it OK?

    Thank you very much,
    Tien

    Thread Starter Tim Codex

    (@tien-nguyen)

    Hi Bigul,

    I tried remove as your advice, but still not effect. The ‘blog’ is not a category, it’s just because my permalink config is: /blog/%author%/%postname%

    Thank you,
    Tien

Viewing 15 replies - 76 through 90 (of 92 total)