Replies: 1 comment
-
Hello, the code depends where and how you're creating your product list / product page (where your "edit button" should appear). But in fact, you can receive the slug for the single product page using Offline's GeneralSettings Model: \OFFLINE\Mall\Models\GeneralSettings::get('product_page'); The following code is just an example theme page to demonstrate how you can create a URL to a specific product, within your front-end:
Of course, it makes more sense to use the existing components or build your own, but this highly depends on your intended use. Sincerely, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's the code to grab the url of the product page so that I can create edit button on the frontend
Beta Was this translation helpful? Give feedback.
All reactions