Skip to main content
Rephrased title to be a question.
Link
Low
  • 11.3k
  • 18
  • 27

low seg2cat not Is Low Seg2Cat working correctly?

deleted 5 characters in body
Source Link
Derek Hogue
  • 17.4k
  • 2
  • 27
  • 42

I am trying to grab the category ID from the last segment to use in a redirect back to that category page but nothing is showing up.

My main page is http://domain.com/store/shop/C28, then you click to view a single entry.

the entry is http://domain.com/store/product_detail/158

where 158 is the entry_id to display a dynamic entry showing one product.

In my redirect (after adding the product to a cart) I want to go back to http://domain.com/store/shop/C28

I have tried to use this in my add to cart but nothing is parsing for the seg2cat

                        return="http://hookingrugs.com/store/shop/C{last_segment_category_id}"}

When I view source I just see http://hookingrugs.com/store/shop/C"

with no ID.

Even if I just place {last_segment_category_id} on the page outside of any other tags I still get nothing. Why does low seg2cat not pick up on the last entry ID.

I am trying to grab the category ID from the last segment to use in a redirect back to that category page but nothing is showing up.

My main page is http://domain.com/store/shop/C28, then you click to view a single entry.

the entry is http://domain.com/store/product_detail/158

where 158 is the entry_id to display a dynamic entry showing one product.

In my redirect (after adding the product to a cart) I want to go back to http://domain.com/store/shop/C28

I have tried to use this in my add to cart but nothing is parsing for the seg2cat

                        return="http://hookingrugs.com/store/shop/C{last_segment_category_id}"}

When I view source I just see http://hookingrugs.com/store/shop/C"

with no ID.

Even if I just place {last_segment_category_id} on the page outside of any other tags I still get nothing. Why does low seg2cat not pick up on the last entry ID.

I am trying to grab the category ID from the last segment to use in a redirect back to that category page but nothing is showing up.

My main page is http://domain.com/store/shop/C28, then you click to view a single entry.

the entry is http://domain.com/store/product_detail/158

where 158 is the entry_id to display a dynamic entry showing one product.

In my redirect (after adding the product to a cart) I want to go back to http://domain.com/store/shop/C28

I have tried to use this in my add to cart but nothing is parsing for the seg2cat

return="http://hookingrugs.com/store/shop/C{last_segment_category_id}"}

When I view source I just see http://hookingrugs.com/store/shop/C"

with no ID.

Even if I just place {last_segment_category_id} on the page outside of any other tags I still get nothing. Why does low seg2cat not pick up on the last entry ID.

added 5 characters in body
Source Link

I am trying to grab the category ID from the last segment to use in a redirect back to that category page but nothing is showing up.

My main page is http://domain.com/store/shop/C28, then you click to view a single entry.

the entry is http://domain.com/store/product_detail/158

where 158 is the entry_id to display a dynamic entry showing one product.

In my redirect (after adding the product to a cart) IOI want to go back to http://domain.com/store/shop/C28

I have tried to use this in my add to cart but nothing is parsing for the seg2cat

                        return="http://hookingrugs.com/store/shop/C{last_segment_category_id}"}

When I view source I just see http://hookingrugs.com/store/shop/C"

with no ID.

Even if I just place {last_segment_category_id} on the page outside of any other tags I still get nothing. Why does low seg2cat not pick up on the last entry ID.

I am trying to grab the category ID from the last segment to use in a redirect back to that category but nothing is showing up

the entry is http://domain.com/store/product_detail/158

where 158 is the entry_id to display a dynamic entry showing one product.

In my redirect (after adding the product to a cart) IO want to go back to http://domain.com/store/shop/C28

I have tried to use this in my add to cart but nothing is parsing for the seg2cat

                        return="http://hookingrugs.com/store/shop/C{last_segment_category_id}"}

When I view source I just see http://hookingrugs.com/store/shop/C"

with no ID.

Even if I just place {last_segment_category_id} on the page outside of any other tags I still get nothing. Why does low seg2cat not pick up on the last entry ID.

I am trying to grab the category ID from the last segment to use in a redirect back to that category page but nothing is showing up.

My main page is http://domain.com/store/shop/C28, then you click to view a single entry.

the entry is http://domain.com/store/product_detail/158

where 158 is the entry_id to display a dynamic entry showing one product.

In my redirect (after adding the product to a cart) I want to go back to http://domain.com/store/shop/C28

I have tried to use this in my add to cart but nothing is parsing for the seg2cat

                        return="http://hookingrugs.com/store/shop/C{last_segment_category_id}"}

When I view source I just see http://hookingrugs.com/store/shop/C"

with no ID.

Even if I just place {last_segment_category_id} on the page outside of any other tags I still get nothing. Why does low seg2cat not pick up on the last entry ID.

Source Link
Loading